Introduce KeyboardStateManager to maintain keyboardstate as show or hide.
- Add a feature flag for IME Latency logging. - Removed mShowImeAfterFirstLayout from ExtendedEditText. http://ag/1414509 added `mShowImeAfterFirstLayout`and cl description says "Show IME when search query != null after rotation". I verified the behavior by turning on "Allow home screen rotation". Keyboard is not getting dismissed on rotation in AA+ screen in a-z list or even in the search screen. Video : https://drive.google.com/file/d/1BWUTrW9OSEo6ojErj8INMwjFCPArVD4B/view?usp=sharing&resourcekey=0-SXTcKyUw1wCSi8Bm37ktow Bug: 240192346 Test: Manual. Verified by setting `ENABLE_KEYBOARD_TRANSITION_SYNC` to false and for following usecases. - All apps entry with ime enabled, scrolling a-z list to hide keyboard - Folder name change - showing and dismissing keyboard - Toast entry from Allapps and QSB - showing and dismissing keyboard Change-Id: I1a6b5759b8e71e77744f58677b6d1b73e2f633e8
This commit is contained in:
1 parent
94a54203f3
commit
a461660fa8
6 files changed
+92
-17
No files matched your search
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.android.launcher3.util;
|
||||
|
||||
import static com.android.launcher3.logging.KeyboardStateManager.KeyboardState.HIDE;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_KEYBOARD_CLOSED;
|
||||
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
|
||||
|
||||
@@ -25,7 +26,6 @@ import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.Message;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.WindowInsets;
|
||||
import android.view.WindowInsetsController;
|
||||
@@ -64,6 +64,7 @@ public class UiThreadHelper {
|
||||
WindowInsets insets = root.getRootWindowInsets();
|
||||
boolean isImeShown = insets != null && insets.isVisible(WindowInsets.Type.ime());
|
||||
if (wic != null && isImeShown) {
|
||||
activityContext.getStatsLogManager().keyboardStateManager().setKeyboardState(HIDE);
|
||||
// this method cannot be called cross threads
|
||||
wic.hide(WindowInsets.Type.ime());
|
||||
activityContext.getStatsLogManager().logger()
|
||||
|
||||
Reference in new issue
Block a user