summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adrian Roos <roosa@google.com> 2020-05-27 18:09:16 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-05-27 18:09:16 +0000
commit792dc29a6eba3d21e8daa4644dd8694dcc829b96 (patch)
treeaf1857146d00a7e4634d014e9501a1024100d893
parentc7577d48c061334eb2cdd96ec8fc4a05af000465 (diff)
parenta2d2ba7e6192a44bbd6449d98df3c46b66d75252 (diff)
Merge "InsetsController: Maintain type user animation when restarting input" into rvc-dev
-rw-r--r--core/java/android/view/InsetsController.java4
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);