summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMichael Webster <miketwebster@gmail.com>2010-07-16 19:27:47 -0400
committerkmobs <persiansown@gmail.com>2010-07-16 18:51:59 -0500
commit8d06113b321064f049937574b01deaf484dcfeb8 (patch)
treedfe267a61807bc00427deb33cfa652beec3f3f90 /services
parent129070c413b3561eac2f2a6525f494243ea1b08a (diff)
downloadframeworks_base-8d06113b321064f049937574b01deaf484dcfeb8.zip
frameworks_base-8d06113b321064f049937574b01deaf484dcfeb8.tar.gz
frameworks_base-8d06113b321064f049937574b01deaf484dcfeb8.tar.bz2
Fix Long-press apply color changes bug to notification bar when switching to rounded bar (google bug!) Clock, dBm, Battery percentage colors will update when their values update.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/status/StatusBarIcon.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/status/StatusBarIcon.java b/services/java/com/android/server/status/StatusBarIcon.java
index d8986fc..9f49747 100644
--- a/services/java/com/android/server/status/StatusBarIcon.java
+++ b/services/java/com/android/server/status/StatusBarIcon.java
@@ -179,6 +179,9 @@ class StatusBarIcon {
}
switch (data.type) {
case IconData.TEXT:
+ data.textColor = Settings.System.getInt(mContext.getContentResolver(),
+ data.colorSetting, data.textColor);
+ mTextView.setTextColor(data.textColor);
if (!TextUtils.equals(mData.text, data.text)) {
TextView tv = mTextView;
tv.setText(data.text);
@@ -194,6 +197,9 @@ class StatusBarIcon {
im.setImageDrawable(getIcon(context, data));
im.setImageLevel(data.iconLevel);
}
+ data.textColor = Settings.System.getInt(mContext.getContentResolver(),
+ data.colorSetting, data.textColor);
+ mNumberView.setTextColor(data.textColor);
if (mData.number != data.number) {
TextView nv = mNumberView;
if (data.number > 0) {