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

Commit 4bb1dfe5 authored by Altaf-Mahdi's avatar Altaf-Mahdi Committed by Clark Scheff
Browse files

Themes: Theme power off and reboot dialog

This patch allows theming of the dialog which
comes after the power menu

Change-Id: I81546543da13cf220d9247dbce833d6e883ed091
parent 3137f81c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -139,9 +139,10 @@ public final class ShutdownThread extends Thread {
     * @param confirm true if user confirmation is needed before shutting down.
     */
    public static void shutdown(final Context context, boolean confirm) {
        final Context uiContext = getUiContext(context);
        mReboot = false;
        mRebootSafeMode = false;
        shutdownInner(context, confirm);
        shutdownInner(uiContext, confirm);
    }

    private static boolean isAdvancedRebootPossible(final Context context) {
@@ -300,10 +301,11 @@ public final class ShutdownThread extends Thread {
     * @param confirm true if user confirmation is needed before shutting down.
     */
    public static void reboot(final Context context, String reason, boolean confirm) {
        final Context uiContext = getUiContext(context);
        mReboot = true;
        mRebootSafeMode = false;
        mRebootReason = reason;
        shutdownInner(context, confirm);
        shutdownInner(uiContext, confirm);
    }

    private static String getShutdownMusicFilePath() {