diff options
author | Alan Viverette <alanv@google.com> | 2014-10-10 10:58:58 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-10-10 10:58:58 -0700 |
commit | 0ba89bd54c4b44b3803342da10b0c08b0bf76ad4 (patch) | |
tree | 512ff72b2ba57474c60e303c6122d4ad05df3744 /src/com/android/settings/notification/NotificationStation.java | |
parent | 90625329608c19c3a0b8f7c98bb8710fe346a220 (diff) | |
download | packages_apps_Settings-0ba89bd54c4b44b3803342da10b0c08b0bf76ad4.zip packages_apps_Settings-0ba89bd54c4b44b3803342da10b0c08b0bf76ad4.tar.gz packages_apps_Settings-0ba89bd54c4b44b3803342da10b0c08b0bf76ad4.tar.bz2 |
Update Settings to use themed Context.getDrawable()
Explicit null theme is passed when using Resources.getDrawable() and
no theme is available, e.g. when using getResourcesForApplication().
This fixes an issue with ic_text_dot theming and helps avoid similar
issues in the future.
BUG: 17648301
Change-Id: I3e97c3490b6f2a55744f567b21284f2935ae9af7
Diffstat (limited to 'src/com/android/settings/notification/NotificationStation.java')
-rw-r--r-- | src/com/android/settings/notification/NotificationStation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/notification/NotificationStation.java b/src/com/android/settings/notification/NotificationStation.java index c61f91e..3f4d3df 100644 --- a/src/com/android/settings/notification/NotificationStation.java +++ b/src/com/android/settings/notification/NotificationStation.java @@ -275,7 +275,7 @@ public class NotificationStation extends SettingsPreferenceFragment { } try { - return r.getDrawable(resId); + return r.getDrawable(resId, null); } catch (RuntimeException e) { Log.w(TAG, "Icon not found in " + (pkg != null ? resId : "<system>") |