commit | 4a357cd2e55293402d7172766f7f9419815fc1e8 | [log] [tgz] |
---|---|---|
author | Alan Viverette <alanv@google.com> | Wed Mar 18 18:37:18 2015 -0700 |
committer | Alan Viverette <alanv@google.com> | Wed Mar 18 18:37:18 2015 -0700 |
tree | f2cedee7f41f48a8141a2798ca6100912553e4ef | |
parent | f2560e62cf26cae64f5751b0479743e09cb7bd7f [diff] [blame] |
Replace usages of deprecated Resources.getColor() and getColorStateList() Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java index d02cd17..e6847d8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
@@ -55,7 +55,7 @@ mSlot = slot; mNumberPain = new Paint(); mNumberPain.setTextAlign(Paint.Align.CENTER); - mNumberPain.setColor(res.getColor(R.drawable.notification_number_text_color)); + mNumberPain.setColor(context.getColor(R.drawable.notification_number_text_color)); mNumberPain.setAntiAlias(true); setNotification(notification);