Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/DisplayImeController.java +6 −0 Original line number Diff line number Diff line Loading @@ -468,6 +468,12 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged if (mImeSourceControl == null || mImeSourceControl.getLeash() == null) { if (DEBUG) Slog.d(TAG, "No leash available, not starting the animation."); return; } else if (!mImeRequestedVisible && show) { // we have a control with leash, but the IME was not requested visible before, // therefore aborting the show animation. Slog.e(TAG, "IME was not requested visible, not starting the show animation."); // TODO(b/353463205) fail statsToken here return; } } final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/DisplayImeControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ public class DisplayImeControllerTest extends ShellTestCase { @Test public void reappliesVisibilityToChangedLeash() { verifyZeroInteractions(mT); mPerDisplay.mImeShowing = true; mPerDisplay.mImeShowing = false; mPerDisplay.insetsControlChanged(insetsStateWithIme(false), insetsSourceControl()); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/DisplayImeController.java +6 −0 Original line number Diff line number Diff line Loading @@ -468,6 +468,12 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged if (mImeSourceControl == null || mImeSourceControl.getLeash() == null) { if (DEBUG) Slog.d(TAG, "No leash available, not starting the animation."); return; } else if (!mImeRequestedVisible && show) { // we have a control with leash, but the IME was not requested visible before, // therefore aborting the show animation. Slog.e(TAG, "IME was not requested visible, not starting the show animation."); // TODO(b/353463205) fail statsToken here return; } } final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/DisplayImeControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ public class DisplayImeControllerTest extends ShellTestCase { @Test public void reappliesVisibilityToChangedLeash() { verifyZeroInteractions(mT); mPerDisplay.mImeShowing = true; mPerDisplay.mImeShowing = false; mPerDisplay.insetsControlChanged(insetsStateWithIme(false), insetsSourceControl()); Loading