Merge "Fix CtsAccessibilityServiceTestCases Fail" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-20 15:20:33 +00:00
committed by Android (Google) Code Review

View File

@@ -1296,12 +1296,6 @@ class WindowStateAnimator {
return;
}
// We don't apply animation for application main window here since this window type
// should be controlled by AppWindowToken in general.
if (mAttrType == TYPE_BASE_APPLICATION) {
return;
}
final int transit;
if (mEnterAnimationPending) {
mEnterAnimationPending = false;
@@ -1309,7 +1303,13 @@ class WindowStateAnimator {
} else {
transit = WindowManagerPolicy.TRANSIT_SHOW;
}
applyAnimationLocked(transit, true);
// We don't apply animation for application main window here since this window type
// should be controlled by AppWindowToken in general.
if (mAttrType != TYPE_BASE_APPLICATION) {
applyAnimationLocked(transit, true);
}
if (mService.mAccessibilityController != null) {
mService.mAccessibilityController.onWindowTransitionLocked(mWin, transit);
}