summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/ActivityPicker.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-10-10 10:58:58 -0700
committerAlan Viverette <alanv@google.com>2014-10-10 10:58:58 -0700
commit0ba89bd54c4b44b3803342da10b0c08b0bf76ad4 (patch)
tree512ff72b2ba57474c60e303c6122d4ad05df3744 /src/com/android/settings/ActivityPicker.java
parent90625329608c19c3a0b8f7c98bb8710fe346a220 (diff)
downloadpackages_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/ActivityPicker.java')
-rw-r--r--src/com/android/settings/ActivityPicker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/ActivityPicker.java b/src/com/android/settings/ActivityPicker.java
index edbccc3..7c26923 100644
--- a/src/com/android/settings/ActivityPicker.java
+++ b/src/com/android/settings/ActivityPicker.java
@@ -159,7 +159,7 @@ public class ActivityPicker extends AlertActivity implements
Resources res = packageManager.getResourcesForApplication(
iconResource.packageName);
icon = res.getDrawable(res.getIdentifier(
- iconResource.resourceName, null, null));
+ iconResource.resourceName, null, null), null);
} catch (NameNotFoundException e) {
// Ignore
}