Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #108 from recruit-lifestyle/feature/fix_null_velocity
Browse files Browse the repository at this point in the history
Fixed bug where mVelocityTracker caused NullPointerException
  • Loading branch information
YoshihideSogawa authored Jan 22, 2019
2 parents 5afad50 + b4a83da commit 5c967b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL)
// 拡大率をもとに戻す
setScale(SCALE_NORMAL);

// destroy VelocityTracker
if (!mIsMoveAccept) {
// destroy VelocityTracker (#103)
if (!mIsMoveAccept && mVelocityTracker != null) {
mVelocityTracker.recycle();
mVelocityTracker = null;
}
Expand Down

0 comments on commit 5c967b3

Please sign in to comment.