summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaran Singh <tarandeep@google.com>2020-04-02 22:37:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-02 22:37:22 +0000
commit992c347b10644e70c4c61c743d0b9e1bf9bd1989 (patch)
treed7375d6395526e1d54d9ddb73f755f157fb57b5a
parentc1081ff1b4797ad009452c185095524d3e66cd44 (diff)
parentf69425eea36145501e6b2a73f0c1606af95593a1 (diff)
Merge "Skip IME animation cancellation during rotation" into rvc-dev
-rw-r--r--services/core/java/com/android/server/wm/WindowStateAnimator.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/WindowStateAnimator.java b/services/core/java/com/android/server/wm/WindowStateAnimator.java
index 563710b9e41b..b25383b15421 100644
--- a/services/core/java/com/android/server/wm/WindowStateAnimator.java
+++ b/services/core/java/com/android/server/wm/WindowStateAnimator.java
@@ -1381,7 +1381,8 @@ class WindowStateAnimator {
return true;
}
- if (isEntrance && mWin.mAttrs.type == TYPE_INPUT_METHOD) {
+ final boolean isImeWindow = mWin.mAttrs.type == TYPE_INPUT_METHOD;
+ if (isEntrance && isImeWindow) {
mWin.getDisplayContent().adjustForImeIfNeeded();
mWin.setDisplayLayoutNeeded();
mService.mWindowPlacerLocked.requestTraversal();
@@ -1435,11 +1436,11 @@ class WindowStateAnimator {
Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER);
mAnimationIsEntrance = isEntrance;
}
- } else {
+ } else if (!isImeWindow) {
mWin.cancelAnimation();
}
- if (!isEntrance && mWin.mAttrs.type == TYPE_INPUT_METHOD) {
+ if (!isEntrance && isImeWindow) {
mWin.getDisplayContent().adjustForImeIfNeeded();
}