From 24c77a5ff5c56bf720fff9f1c0530c3fce44b83a Mon Sep 17 00:00:00 2001 From: Becky Qiu Date: Thu, 9 Jun 2022 12:20:48 -0700 Subject: [PATCH] Hide keyboard when thumb scroller is visible. Bug: 235497706 Test: manual Change-Id: Id3202300650949d079b9209e30b2bfc4f80979cd --- src/com/android/launcher3/views/RecyclerViewFastScroller.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/launcher3/views/RecyclerViewFastScroller.java b/src/com/android/launcher3/views/RecyclerViewFastScroller.java index cc2b440ce3..11ca130179 100644 --- a/src/com/android/launcher3/views/RecyclerViewFastScroller.java +++ b/src/com/android/launcher3/views/RecyclerViewFastScroller.java @@ -285,8 +285,6 @@ public class RecyclerViewFastScroller extends View { } break; case MotionEvent.ACTION_UP: - hideKeyboardAsync(ActivityContext.lookupContext(getContext()), - getApplicationWindowToken()); case MotionEvent.ACTION_CANCEL: mRv.onFastScrollCompleted(); mTouchOffsetY = 0; @@ -310,6 +308,7 @@ public class RecyclerViewFastScroller extends View { } private void calcTouchOffsetAndPrepToFastScroll(int downY, int lastY) { + hideKeyboardAsync(ActivityContext.lookupContext(getContext()), getWindowToken()); mIsDragging = true; if (mCanThumbDetach) { mIsThumbDetached = true;