Merge "Notify Accessibilty about rotation in applyRotation" into rvc-dev am: 1edeeee316

Change-Id: Ia6d2b8e5c19c8e64e355b631121161fcf86ae431
This commit is contained in:
Chavi Weingarten
2020-05-08 16:03:48 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 10 deletions

View File

@@ -1620,9 +1620,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
}
}
// Announce rotation only if we will not animate as we already have the
// windows in final state. Otherwise, we make this call at the rotation end.
if (screenRotationAnimation == null && mWmService.mAccessibilityController != null) {
if (mWmService.mAccessibilityController != null) {
mWmService.mAccessibilityController.onRotationChangedLocked(this);
}
}

View File

@@ -732,13 +732,6 @@ class ScreenRotationAnimation {
mService.mAnimator.mBulkUpdateParams |= WindowSurfacePlacer.SET_UPDATE_ROTATION;
kill();
mService.updateRotation(false, false);
AccessibilityController accessibilityController = mService.mAccessibilityController;
if (accessibilityController != null) {
// We just finished rotation animation which means we did not
// announce the rotation and waited for it to end, announce now.
accessibilityController.onRotationChangedLocked(mDisplayContent);
}
}
}