summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/RegulatoryInfoDisplayActivity.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/RegulatoryInfoDisplayActivity.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/RegulatoryInfoDisplayActivity.java')
-rw-r--r--src/com/android/settings/RegulatoryInfoDisplayActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/RegulatoryInfoDisplayActivity.java b/src/com/android/settings/RegulatoryInfoDisplayActivity.java
index 171059c..c674f13 100644
--- a/src/com/android/settings/RegulatoryInfoDisplayActivity.java
+++ b/src/com/android/settings/RegulatoryInfoDisplayActivity.java
@@ -63,7 +63,7 @@ public class RegulatoryInfoDisplayActivity extends Activity implements
int resId = getResourceId();
if (resId != 0) {
try {
- Drawable d = resources.getDrawable(resId);
+ Drawable d = getDrawable(resId);
// set to false if the width or height is <= 2
// (missing PNG can return an empty 2x2 pixel Drawable)
regulatoryInfoDrawableExists = (d.getIntrinsicWidth() > 2