Merge "Fix shortcut rotate trigger swipe notification" into sc-dev am: bd1d84122b am: 6b451802c1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15017733

Change-Id: I99609bd9cbd20abf9db07fbfc5d6e128f1b78368
This commit is contained in:
TreeHugger Robot
2021-06-21 11:58:16 +00:00
committed by Automerger Merge Worker

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);
}