Merge "Notify Accessibilty about rotation in applyRotation" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1edeeee316
@@ -1620,9 +1620,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Announce rotation only if we will not animate as we already have the
|
if (mWmService.mAccessibilityController != null) {
|
||||||
// windows in final state. Otherwise, we make this call at the rotation end.
|
|
||||||
if (screenRotationAnimation == null && mWmService.mAccessibilityController != null) {
|
|
||||||
mWmService.mAccessibilityController.onRotationChangedLocked(this);
|
mWmService.mAccessibilityController.onRotationChangedLocked(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -732,13 +732,6 @@ class ScreenRotationAnimation {
|
|||||||
mService.mAnimator.mBulkUpdateParams |= WindowSurfacePlacer.SET_UPDATE_ROTATION;
|
mService.mAnimator.mBulkUpdateParams |= WindowSurfacePlacer.SET_UPDATE_ROTATION;
|
||||||
kill();
|
kill();
|
||||||
mService.updateRotation(false, false);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user