android: sysui: Support to keep user rotation pref
Signed-off-by: hmz007 <hmz007@gmail.com>
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user