Loading packages/SystemUI/src/com/android/systemui/wm/DisplayImeController.java +105 −105 Original line number Diff line number Diff line Loading @@ -187,6 +187,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged @Override public void insetsChanged(InsetsState insetsState) { mHandler.post(() -> { if (mInsetsState.equals(insetsState)) { return; } Loading @@ -200,6 +201,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged if (DEBUG) Slog.d(TAG, "insetsChanged when IME showing, restart animation"); startAnimation(mImeShowing, true /* forceRestart */); } }); } @Override Loading Loading @@ -232,7 +234,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged return; } if (DEBUG) Slog.d(TAG, "Got showInsets for ime"); startAnimation(true /* show */, false /* forceRestart */); mHandler.post(() -> startAnimation(true /* show */, false /* forceRestart */)); } @Override Loading @@ -241,7 +243,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged return; } if (DEBUG) Slog.d(TAG, "Got hideInsets for ime"); startAnimation(false /* show */, false /* forceRestart */); mHandler.post(() -> startAnimation(false /* show */, false /* forceRestart */)); } /** Loading Loading @@ -269,7 +271,6 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged if (newFrame.height() != 0) { mImeFrame.set(newFrame); } mHandler.post(() -> { if (DEBUG) { Slog.d(TAG, "Run startAnim show:" + show + " was:" + (mAnimationDirection == DIRECTION_SHOW ? "SHOW" Loading Loading @@ -370,7 +371,6 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged // can have a "flicker" of ime-provided insets. setVisibleDirectly(true /* visible */); } }); } } Loading Loading
packages/SystemUI/src/com/android/systemui/wm/DisplayImeController.java +105 −105 Original line number Diff line number Diff line Loading @@ -187,6 +187,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged @Override public void insetsChanged(InsetsState insetsState) { mHandler.post(() -> { if (mInsetsState.equals(insetsState)) { return; } Loading @@ -200,6 +201,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged if (DEBUG) Slog.d(TAG, "insetsChanged when IME showing, restart animation"); startAnimation(mImeShowing, true /* forceRestart */); } }); } @Override Loading Loading @@ -232,7 +234,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged return; } if (DEBUG) Slog.d(TAG, "Got showInsets for ime"); startAnimation(true /* show */, false /* forceRestart */); mHandler.post(() -> startAnimation(true /* show */, false /* forceRestart */)); } @Override Loading @@ -241,7 +243,7 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged return; } if (DEBUG) Slog.d(TAG, "Got hideInsets for ime"); startAnimation(false /* show */, false /* forceRestart */); mHandler.post(() -> startAnimation(false /* show */, false /* forceRestart */)); } /** Loading Loading @@ -269,7 +271,6 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged if (newFrame.height() != 0) { mImeFrame.set(newFrame); } mHandler.post(() -> { if (DEBUG) { Slog.d(TAG, "Run startAnim show:" + show + " was:" + (mAnimationDirection == DIRECTION_SHOW ? "SHOW" Loading Loading @@ -370,7 +371,6 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged // can have a "flicker" of ime-provided insets. setVisibleDirectly(true /* visible */); } }); } } Loading