Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 503385c4 authored by Rubin Xu's avatar Rubin Xu Committed by Android (Google) Code Review
Browse files

Merge "Fix DISALLOW_SAFE_BOOT on HSUM" into main

parents 3b13da5f 5e0ad3d2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -954,7 +954,8 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
                return false;
            }
            mUiEventLogger.log(GlobalActionsEvent.GA_SHUTDOWN_LONG_PRESS);
            if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) {
            if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT,
                    getCurrentUser().getUserHandle())) {
                mWindowManagerFuncs.reboot(true);
                return true;
            }
@@ -1098,7 +1099,8 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
                return false;
            }
            mUiEventLogger.log(GlobalActionsEvent.GA_REBOOT_LONG_PRESS);
            if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) {
            if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT,
                    getCurrentUser().getUserHandle())) {
                mWindowManagerFuncs.reboot(true);
                return true;
            }