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

Commit 9e581f13 authored by blunden's avatar blunden
Browse files

Framework: Use ICS alert drawable

Merging the reboot menu code caused a removal of
the bugfix in this commit: http://bit.ly/MYAIxj

ICS updated the way one should point to the alert
drawable. The old way makes it point to an upscaled
GB drawable instead.

NOTE: Google actually removed the icon for the
shutdown menu in the commit below but I think
it looks nice.

Change-Id: If37c68507886607f9be7f733c0586f814f0ed682
http://bit.ly/LJvp3h
parent 524c0d41
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ public final class ShutdownThread extends Thread {
            // Set different dialog message based on whether or not we're rebooting
            if (mReboot) {
                dialog = new AlertDialog.Builder(context)
                        .setIcon(android.R.drawable.ic_dialog_alert)
                        .setIconAttribute(android.R.attr.alertDialogIcon)
                        .setTitle(com.android.internal.R.string.reboot_system)
                        .setSingleChoiceItems(com.android.internal.R.array.shutdown_reboot_options, 0, new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog, int which) {
@@ -161,7 +161,7 @@ public final class ShutdownThread extends Thread {
                mRebootReason = actions[0];
            } else {
                dialog = new AlertDialog.Builder(context)
                        .setIcon(android.R.drawable.ic_dialog_alert)
                        .setIconAttribute(android.R.attr.alertDialogIcon)
                        .setTitle(com.android.internal.R.string.power_off)
                        .setMessage(com.android.internal.R.string.shutdown_confirm)
                        .setPositiveButton(com.android.internal.R.string.yes, new DialogInterface.OnClickListener() {
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ public class ConfirmDialog extends Activity implements CompoundButton.OnCheckedC
            ((CompoundButton) view.findViewById(R.id.check)).setOnCheckedChangeListener(this);

            mDialog = new AlertDialog.Builder(this)
                    .setIcon(android.R.drawable.ic_dialog_alert)
                    .setIconAttribute(android.R.attr.alertDialogIcon)
                    .setTitle(android.R.string.dialog_alert_title)
                    .setView(view)
                    .setPositiveButton(android.R.string.ok, this)