diff options
author | 2020-05-27 18:09:16 +0000 | |
---|---|---|
committer | 2020-05-27 18:09:16 +0000 | |
commit | 792dc29a6eba3d21e8daa4644dd8694dcc829b96 (patch) | |
tree | af1857146d00a7e4634d014e9501a1024100d893 | |
parent | c7577d48c061334eb2cdd96ec8fc4a05af000465 (diff) | |
parent | a2d2ba7e6192a44bbd6449d98df3c46b66d75252 (diff) |
Merge "InsetsController: Maintain type user animation when restarting input" into rvc-dev
-rw-r--r-- | core/java/android/view/InsetsController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/view/InsetsController.java b/core/java/android/view/InsetsController.java index 0a2810fb3b7a..ef9edc6c0741 100644 --- a/core/java/android/view/InsetsController.java +++ b/core/java/android/view/InsetsController.java @@ -745,6 +745,10 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation consumer.getType(), animationType, consumer.isRequestedVisible())); continue; } + if (fromIme && animationType == ANIMATION_TYPE_USER) { + // App is already controlling the IME, don't cancel it. + continue; + } typesReady |= InsetsState.toPublicType(consumer.getType()); } if (DEBUG) Log.d(TAG, "show typesReady: " + typesReady); |