Loading packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +10 −4 Original line number Original line Diff line number Diff line Loading @@ -1564,8 +1564,11 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener, } } // Unlock rotation, so user can choose to rotate to portrait to see the panel. // Unlock rotation, so user can choose to rotate to portrait to see the panel. // This call is posted so that the rotation does not change until post-layout, // otherwise onConfigurationChanged() may not get invoked. mGlobalActionsLayout.post(() -> RotationPolicy.setRotationLockAtAngle( RotationPolicy.setRotationLockAtAngle( mContext, false, RotationUtils.ROTATION_NONE); mContext, false, RotationUtils.ROTATION_NONE)); } } } else { } else { if (!rotationLocked) { if (!rotationLocked) { Loading @@ -1575,8 +1578,11 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener, } } // Lock to portrait, so the user doesn't accidentally hide the panel. // Lock to portrait, so the user doesn't accidentally hide the panel. // This call is posted so that the rotation does not change until post-layout, // otherwise onConfigurationChanged() may not get invoked. mGlobalActionsLayout.post(() -> RotationPolicy.setRotationLockAtAngle( RotationPolicy.setRotationLockAtAngle( mContext, true, RotationUtils.ROTATION_NONE); mContext, true, RotationUtils.ROTATION_NONE)); } } // Disable rotation suggestions, if enabled // Disable rotation suggestions, if enabled Loading Loading
packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +10 −4 Original line number Original line Diff line number Diff line Loading @@ -1564,8 +1564,11 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener, } } // Unlock rotation, so user can choose to rotate to portrait to see the panel. // Unlock rotation, so user can choose to rotate to portrait to see the panel. // This call is posted so that the rotation does not change until post-layout, // otherwise onConfigurationChanged() may not get invoked. mGlobalActionsLayout.post(() -> RotationPolicy.setRotationLockAtAngle( RotationPolicy.setRotationLockAtAngle( mContext, false, RotationUtils.ROTATION_NONE); mContext, false, RotationUtils.ROTATION_NONE)); } } } else { } else { if (!rotationLocked) { if (!rotationLocked) { Loading @@ -1575,8 +1578,11 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener, } } // Lock to portrait, so the user doesn't accidentally hide the panel. // Lock to portrait, so the user doesn't accidentally hide the panel. // This call is posted so that the rotation does not change until post-layout, // otherwise onConfigurationChanged() may not get invoked. mGlobalActionsLayout.post(() -> RotationPolicy.setRotationLockAtAngle( RotationPolicy.setRotationLockAtAngle( mContext, true, RotationUtils.ROTATION_NONE); mContext, true, RotationUtils.ROTATION_NONE)); } } // Disable rotation suggestions, if enabled // Disable rotation suggestions, if enabled Loading