diff options
author | Adam Powell <adamp@google.com> | 2011-01-07 22:30:48 -0800 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2011-01-08 13:09:51 -0800 |
commit | 947f7824118f0e9b642df8760a8725a7eda59318 (patch) | |
tree | e0394b7dd4a05f45564cae756c76fe1860da5a35 /packages/SystemUI/src/com/android/systemui/power | |
parent | 4d46ecb0759d5adfdb4015a27e2a596115180286 (diff) | |
download | frameworks_base-947f7824118f0e9b642df8760a8725a7eda59318.zip frameworks_base-947f7824118f0e9b642df8760a8725a7eda59318.tar.gz frameworks_base-947f7824118f0e9b642df8760a8725a7eda59318.tar.bz2 |
Fix bug 3245465 - Themed dialog icons
Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).
Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/power')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/power/PowerUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerUI.java b/packages/SystemUI/src/com/android/systemui/power/PowerUI.java index 9dfc9c3..a81484c 100644 --- a/packages/SystemUI/src/com/android/systemui/power/PowerUI.java +++ b/packages/SystemUI/src/com/android/systemui/power/PowerUI.java @@ -186,7 +186,7 @@ public class PowerUI extends SystemUI { b.setCancelable(true); b.setTitle(R.string.battery_low_title); b.setView(v); - b.setIcon(android.R.drawable.ic_dialog_alert); + b.setIconAttribute(android.R.attr.alertDialogIcon); b.setPositiveButton(android.R.string.ok, null); final Intent intent = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY); @@ -249,7 +249,7 @@ if (false) { // getRingtone ANRs AlertDialog.Builder b = new AlertDialog.Builder(mContext); b.setCancelable(true); b.setMessage(R.string.invalid_charger); - b.setIcon(android.R.drawable.ic_dialog_alert); + b.setIconAttribute(android.R.attr.alertDialogIcon); b.setPositiveButton(android.R.string.ok, null); AlertDialog d = b.create(); |