|
|
|
|
@ -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 {
|
|
|
|
|
|