From 10069f460f84769fc5be13d0e7944a83f3f13ac9 Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Tue, 21 Feb 2023 08:07:13 +0000 Subject: [PATCH] Support split resizing while showing floating IME panel Enable to rezise split screen while showing floating IME panel or attached with physical keyboard in input mode. Fix: 269071345 Test: atest WMShellUnitTests Video: http://recall/-/fLARJNt42LVxc3tt86SneW/fITd3BUUAtmo91u22R3cd0 http://recall/-/fLARJNt42LVxc3tt86SneW/eFnwHQNgvM7OautAX3N4rP Change-Id: Ifc9ff0cefbcaaaef598c9ae0fee545bd8ddba486 --- .../src/com/android/wm/shell/common/split/SplitLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java b/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java index f616e6f64750a..8a18271b029ac 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/SplitLayout.java @@ -1091,7 +1091,7 @@ public final class SplitLayout implements DisplayInsetsController.OnInsetsChange // ImePositionProcessor#onImeVisibilityChanged directly in DividerView is not enough // because DividerView won't receive onImeVisibilityChanged callback after it being // re-inflated. - mSplitWindowManager.setInteractive(!mImeShown || !mHasImeFocus, + mSplitWindowManager.setInteractive(!mImeShown || !mHasImeFocus || isFloating, "onImeStartPositioning"); return needOffset ? IME_ANIMATION_NO_ALPHA : 0;