Merge "Enable "Reboot to safe mode" confirmation on GlobalActions" into oc-dr1-dev
am: 3ad6233685
Change-Id: I3d90b93e7dd896157dc1f645f3d8327bb0afd59a
This commit is contained in:
@@ -339,6 +339,7 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener, DialogIn
|
|||||||
long id) {
|
long id) {
|
||||||
final Action action = mAdapter.getItem(position);
|
final Action action = mAdapter.getItem(position);
|
||||||
if (action instanceof LongPressAction) {
|
if (action instanceof LongPressAction) {
|
||||||
|
mDialog.dismiss();
|
||||||
return ((LongPressAction) action).onLongPress();
|
return ((LongPressAction) action).onLongPress();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -783,7 +783,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub {
|
|||||||
mHandler.post(() -> {
|
mHandler.post(() -> {
|
||||||
// ShutdownThread displays UI, so give it a UI context.
|
// ShutdownThread displays UI, so give it a UI context.
|
||||||
if (safeMode) {
|
if (safeMode) {
|
||||||
ShutdownThread.rebootSafeMode(getUiContext(), false);
|
ShutdownThread.rebootSafeMode(getUiContext(), true);
|
||||||
} else {
|
} else {
|
||||||
ShutdownThread.reboot(getUiContext(),
|
ShutdownThread.reboot(getUiContext(),
|
||||||
PowerManager.SHUTDOWN_USER_REQUESTED, false);
|
PowerManager.SHUTDOWN_USER_REQUESTED, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user