Loading services/core/java/com/android/server/inputmethod/ImeVisibilityStateComputer.java +3 −2 Original line number Diff line number Diff line Loading @@ -387,8 +387,9 @@ public final class ImeVisibilityStateComputer { @GuardedBy("ImfLock.class") void setWindowState(IBinder windowToken, @NonNull ImeTargetWindowState newState) { final ImeTargetWindowState state = mRequestWindowStateMap.get(windowToken); if (state != null && newState.hasEditorFocused() && newState.mToolType != MotionEvent.TOOL_TYPE_STYLUS) { if (state != null && newState.hasEditorFocused() && ( newState.mToolType != MotionEvent.TOOL_TYPE_STYLUS || Flags.refactorInsetsController())) { // Inherit the last requested IME visible state when the target window is still // focused with an editor. newState.setRequestedImeVisible(state.mRequestedImeVisible); Loading Loading
services/core/java/com/android/server/inputmethod/ImeVisibilityStateComputer.java +3 −2 Original line number Diff line number Diff line Loading @@ -387,8 +387,9 @@ public final class ImeVisibilityStateComputer { @GuardedBy("ImfLock.class") void setWindowState(IBinder windowToken, @NonNull ImeTargetWindowState newState) { final ImeTargetWindowState state = mRequestWindowStateMap.get(windowToken); if (state != null && newState.hasEditorFocused() && newState.mToolType != MotionEvent.TOOL_TYPE_STYLUS) { if (state != null && newState.hasEditorFocused() && ( newState.mToolType != MotionEvent.TOOL_TYPE_STYLUS || Flags.refactorInsetsController())) { // Inherit the last requested IME visible state when the target window is still // focused with an editor. newState.setRequestedImeVisible(state.mRequestedImeVisible); Loading