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

Commit f7fc9cee 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 c9b365d6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -155,9 +155,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) {
@@ -316,11 +317,12 @@ 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;
        mRebootUpdate = false;
        mRebootReason = reason;
        shutdownInner(context, confirm);
        shutdownInner(uiContext, confirm);
    }

    private static String getShutdownMusicFilePath() {