android: sysui: Support to keep user rotation pref

Signed-off-by: hmz007 <hmz007@gmail.com>
master
hmz007 5 years ago
parent 0ec2ba807c
commit 61392335a4

@ -829,7 +829,8 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
// Reset user rotation pref to match that of the WindowManager if starting in locked
// mode. This will automatically happen when switching from auto-rotate to locked mode.
if (display != null && rotationButtonController.isRotationLocked()) {
final boolean resetRotation = !SystemProperties.getBoolean("ro.vendor.user_rotation", false);
if (resetRotation && display != null && rotationButtonController.isRotationLocked()) {
rotationButtonController.setRotationLockedAtAngle(display.getRotation());
}
} else {

Loading…
Cancel
Save