Merge "Fix shortcut rotate trigger swipe notification" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-18 17:12:22 +00:00
committed by Android (Google) Code Review

View File

@@ -191,8 +191,15 @@ public class OneHandedDisplayAreaOrganizer extends DisplayAreaOrganizer {
myUserId())) {
return;
}
mDisplayLayout.rotateTo(context.getResources(), toRotation);
updateDisplayBounds();
if (mOneHandedSettingsUtil.getSettingsSwipeToNotificationEnabled(
context.getContentResolver(), myUserId())) {
// If current settings is swipe notification, skip finishOffset.
return;
}
finishOffset(0, TRANSITION_DIRECTION_EXIT);
}