OSDN Git Service

Update the datause icons.
authorRobert Greenwalt <robdroid@android.com>
Tue, 13 Apr 2010 22:17:14 +0000 (15:17 -0700)
committerRobert Greenwalt <robdroid@android.com>
Wed, 14 Apr 2010 16:13:53 +0000 (09:13 -0700)
bug:2576057
Change-Id: Idf57d59aecb9bcff635dafa1e77d90a8737a0c08

core/res/res/drawable-hdpi/stat_sys_throttle_warning.png [deleted file]
core/res/res/drawable-hdpi/stat_sys_throttled.png
core/res/res/drawable-mdpi/stat_sys_throttle_warning.png [deleted file]
core/res/res/drawable-mdpi/stat_sys_throttled.png
services/java/com/android/server/ThrottleService.java

diff --git a/core/res/res/drawable-hdpi/stat_sys_throttle_warning.png b/core/res/res/drawable-hdpi/stat_sys_throttle_warning.png
deleted file mode 100644 (file)
index c42b00c..0000000
Binary files a/core/res/res/drawable-hdpi/stat_sys_throttle_warning.png and /dev/null differ
index e43fbae..33c0521 100644 (file)
Binary files a/core/res/res/drawable-hdpi/stat_sys_throttled.png and b/core/res/res/drawable-hdpi/stat_sys_throttled.png differ
diff --git a/core/res/res/drawable-mdpi/stat_sys_throttle_warning.png b/core/res/res/drawable-mdpi/stat_sys_throttle_warning.png
deleted file mode 100644 (file)
index 3688803..0000000
Binary files a/core/res/res/drawable-mdpi/stat_sys_throttle_warning.png and /dev/null differ
index efb64ad..97ac427 100644 (file)
Binary files a/core/res/res/drawable-mdpi/stat_sys_throttled.png and b/core/res/res/drawable-mdpi/stat_sys_throttled.png differ
index 16fd104..9333dd8 100644 (file)
@@ -425,7 +425,7 @@ public class ThrottleService extends IThrottleManager.Stub {
                     }
 
                     mNotificationManager.cancel(com.android.internal.R.drawable.
-                            stat_sys_throttle_warning);
+                            stat_sys_throttled);
 
                     postNotification(com.android.internal.R.string.throttled_notification_title,
                             com.android.internal.R.string.throttled_notification_message,
@@ -460,18 +460,18 @@ public class ThrottleService extends IThrottleManager.Stub {
                         if (mWarningNotificationSent == false) {
                             mWarningNotificationSent = true;
                             mNotificationManager.cancel(com.android.internal.R.drawable.
-                                    stat_sys_throttle_warning);
+                                    stat_sys_throttled);
                             postNotification(com.android.internal.R.string.
                                     throttle_warning_notification_title,
                                     com.android.internal.R.string.
                                     throttle_warning_notification_message,
-                                    com.android.internal.R.drawable.stat_sys_throttle_warning,
+                                    com.android.internal.R.drawable.stat_sys_throttled,
                                     0);
                         }
                     } else {
                         if (mWarningNotificationSent == true) {
                             mNotificationManager.cancel(com.android.internal.R.drawable.
-                                    stat_sys_throttle_warning);
+                                    stat_sys_throttled);
                             mWarningNotificationSent =false;
                         }
                     }
@@ -519,7 +519,6 @@ public class ThrottleService extends IThrottleManager.Stub {
                 broadcast.putExtra(ThrottleManager.EXTRA_THROTTLE_LEVEL, -1);
                 mContext.sendStickyBroadcast(broadcast);
             }
-            mNotificationManager.cancel(com.android.internal.R.drawable.stat_sys_throttle_warning);
             mNotificationManager.cancel(com.android.internal.R.drawable.stat_sys_throttled);
             mWarningNotificationSent = false;
         }