Loading core/java/android/view/InsetsController.java +5 −0 Original line number Diff line number Diff line Loading @@ -467,6 +467,10 @@ public class InsetsController implements WindowInsetsController { } } boolean isAnimating() { return mAnimationDirection != DIRECTION_NONE; } private InsetsSourceConsumer createConsumerOfType(int type) { if (type == ITYPE_IME) { return new ImeInsetsSourceConsumer(mState, Transaction::new, this); Loading Loading @@ -514,6 +518,7 @@ public class InsetsController implements WindowInsetsController { } else { hideDirectly(types); } mAnimationDirection = show ? DIRECTION_SHOW : DIRECTION_HIDE; mAnimator = ObjectAnimator.ofObject( controller, new InsetsProperty(), Loading core/java/android/view/InsetsSourceConsumer.java +2 −1 Original line number Diff line number Diff line Loading @@ -167,7 +167,8 @@ public class InsetsSourceConsumer { } private void applyHiddenToControl() { if (mSourceControl == null || mSourceControl.getLeash() == null) { if (mSourceControl == null || mSourceControl.getLeash() == null || mController.isAnimating()) { return; } Loading Loading
core/java/android/view/InsetsController.java +5 −0 Original line number Diff line number Diff line Loading @@ -467,6 +467,10 @@ public class InsetsController implements WindowInsetsController { } } boolean isAnimating() { return mAnimationDirection != DIRECTION_NONE; } private InsetsSourceConsumer createConsumerOfType(int type) { if (type == ITYPE_IME) { return new ImeInsetsSourceConsumer(mState, Transaction::new, this); Loading Loading @@ -514,6 +518,7 @@ public class InsetsController implements WindowInsetsController { } else { hideDirectly(types); } mAnimationDirection = show ? DIRECTION_SHOW : DIRECTION_HIDE; mAnimator = ObjectAnimator.ofObject( controller, new InsetsProperty(), Loading
core/java/android/view/InsetsSourceConsumer.java +2 −1 Original line number Diff line number Diff line Loading @@ -167,7 +167,8 @@ public class InsetsSourceConsumer { } private void applyHiddenToControl() { if (mSourceControl == null || mSourceControl.getLeash() == null) { if (mSourceControl == null || mSourceControl.getLeash() == null || mController.isAnimating()) { return; } Loading