Merge "Update when display change callback on legacy transition" into tm-qpr-dev am: c2df8ddade
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19084695 Change-Id: I2e1bb593b11c47babd770e165d373b3c93f2d685 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1343,8 +1343,6 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
|
|||||||
private void onDisplayChange(int displayId, int fromRotation, int toRotation,
|
private void onDisplayChange(int displayId, int fromRotation, int toRotation,
|
||||||
@Nullable DisplayAreaInfo newDisplayAreaInfo, WindowContainerTransaction wct) {
|
@Nullable DisplayAreaInfo newDisplayAreaInfo, WindowContainerTransaction wct) {
|
||||||
if (!mMainStage.isActive()) return;
|
if (!mMainStage.isActive()) return;
|
||||||
// Only do this when shell transition
|
|
||||||
if (!ENABLE_SHELL_TRANSITIONS) return;
|
|
||||||
|
|
||||||
mDisplayLayout.rotateTo(mContext.getResources(), toRotation);
|
mDisplayLayout.rotateTo(mContext.getResources(), toRotation);
|
||||||
mSplitLayout.rotateTo(toRotation, mDisplayLayout.stableInsets());
|
mSplitLayout.rotateTo(toRotation, mDisplayLayout.stableInsets());
|
||||||
|
|||||||
Reference in New Issue
Block a user