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

Commit 353e19f

Browse files
Merge pull request #109 from recruit-lifestyle/develop
Ver 2.4.2
2 parents d0034e3 + 5c967b3 commit 353e19f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/main/java/jp/co/recruit_lifestyle/android/floatingview/FloatingView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,8 @@ else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL)
878878
// 拡大率をもとに戻す
879879
setScale(SCALE_NORMAL);
880880

881-
// destroy VelocityTracker
882-
if (!mIsMoveAccept) {
881+
// destroy VelocityTracker (#103)
882+
if (!mIsMoveAccept && mVelocityTracker != null) {
883883
mVelocityTracker.recycle();
884884
mVelocityTracker = null;
885885
}

sample/src/main/java/jp/co/recruit_lifestyle/sample/fragment/FloatingViewControlFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private void showFloatingView(Context context, boolean isShowOverlayPermission,
132132
// オーバレイパーミッションの表示
133133
if (isShowOverlayPermission) {
134134
final Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + context.getPackageName()));
135-
startActivityForResult(intent, CHATHEAD_OVERLAY_PERMISSION_REQUEST_CODE);
135+
startActivityForResult(intent, isCustomFloatingView ? CUSTOM_OVERLAY_PERMISSION_REQUEST_CODE : CHATHEAD_OVERLAY_PERMISSION_REQUEST_CODE);
136136
}
137137
}
138138

0 commit comments

Comments
 (0)