From c2f4537495d10dc7580fc6ffbd1444e420447fc5 Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Tue, 19 Nov 2024 15:22:33 -0800 Subject: [PATCH] Fix keyboard staying up in AOSP launcher. The keyboard doesn't close when swiping down from A-Z list. So in Launcher when going to any state from A-Z getAPpsView().reset() gets called which eventually calls resetSearch() where we can hideKeyboard. bug: 379052503 Test: before in bug after: https://drive.google.com/file/d/11oVTvkBtj9rECEtz4IVH1tURaJz6pFTO/view?usp=sharing Flag: NONE bug fix Change-Id: I707bf5dc2f81d5e83e869e34de674ef7fc065486 --- .../launcher3/allapps/search/AllAppsSearchBarController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java b/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java index 7e3e392a87..fe11ee20d1 100644 --- a/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java +++ b/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java @@ -150,6 +150,7 @@ public class AllAppsSearchBarController mCallback.clearSearchResult(); mInput.reset(); mInput.clearFocus(); + mInput.hideKeyboard(); mQuery = null; }