Merge "Hide keyboard when thumb scroller is visible." into tm-dev am: d6d0dc3ca8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18819707 Change-Id: I767abf4b42ef7cf48df487f14215de9eff647953 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -285,8 +285,6 @@ public class RecyclerViewFastScroller extends View {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
hideKeyboardAsync(ActivityContext.lookupContext(getContext()),
|
|
||||||
getApplicationWindowToken());
|
|
||||||
case MotionEvent.ACTION_CANCEL:
|
case MotionEvent.ACTION_CANCEL:
|
||||||
mRv.onFastScrollCompleted();
|
mRv.onFastScrollCompleted();
|
||||||
mTouchOffsetY = 0;
|
mTouchOffsetY = 0;
|
||||||
@@ -310,6 +308,7 @@ public class RecyclerViewFastScroller extends View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void calcTouchOffsetAndPrepToFastScroll(int downY, int lastY) {
|
private void calcTouchOffsetAndPrepToFastScroll(int downY, int lastY) {
|
||||||
|
hideKeyboardAsync(ActivityContext.lookupContext(getContext()), getWindowToken());
|
||||||
mIsDragging = true;
|
mIsDragging = true;
|
||||||
if (mCanThumbDetach) {
|
if (mCanThumbDetach) {
|
||||||
mIsThumbDetached = true;
|
mIsThumbDetached = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user