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

Commit e256ce07 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "GlobalActions: Add isReboot as a param for ShutdownUi." into udc-d1-dev

parents 66244229 79f6f864
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ public class ShutdownUi {
        window.setBackgroundDrawable(background);
        window.setWindowAnimations(com.android.systemui.R.style.Animation_ShutdownUi);

        d.setContentView(getShutdownDialogContent());
        d.setContentView(getShutdownDialogContent(isReboot));
        d.setCancelable(false);

        int color;
@@ -129,7 +129,12 @@ public class ShutdownUi {
        d.show();
    }

    public int getShutdownDialogContent() {
    /**
     * Returns the layout resource to use for UI while shutting down.
     * @param isReboot Whether this is a reboot or a shutdown.
     * @return
     */
    public int getShutdownDialogContent(boolean isReboot) {
        return R.layout.shutdown_dialog;
    }