summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-08-14 12:59:10 -0700
committerAlan Viverette <alanv@google.com>2014-08-14 19:59:50 +0000
commit03d30a573b8bc8e169e153a0fffa053ffedcd5ee (patch)
tree68640cc8777cf053fec72804e85a51d6cf20a1c3 /telecomm/java/android
parent8599a3358077d800e94000d5956a912205eec51b (diff)
downloadframeworks_base-03d30a573b8bc8e169e153a0fffa053ffedcd5ee.zip
frameworks_base-03d30a573b8bc8e169e153a0fffa053ffedcd5ee.tar.gz
frameworks_base-03d30a573b8bc8e169e153a0fffa053ffedcd5ee.tar.bz2
Make sure we're obtaining themed drawables correctly
Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85
Diffstat (limited to 'telecomm/java/android')
-rw-r--r--telecomm/java/android/telecomm/PhoneAccount.java2
-rw-r--r--telecomm/java/android/telecomm/StatusHints.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/telecomm/java/android/telecomm/PhoneAccount.java b/telecomm/java/android/telecomm/PhoneAccount.java
index e3e942b..411f48c 100644
--- a/telecomm/java/android/telecomm/PhoneAccount.java
+++ b/telecomm/java/android/telecomm/PhoneAccount.java
@@ -254,7 +254,7 @@ public class PhoneAccount implements Parcelable {
return null;
}
try {
- return packageContext.getResources().getDrawable(resId);
+ return packageContext.getDrawable(resId);
} catch (NotFoundException|MissingResourceException e) {
Log.e(this, e, "Cannot find icon %d in package %s",
resId, mAccountHandle.getComponentName().getPackageName());
diff --git a/telecomm/java/android/telecomm/StatusHints.java b/telecomm/java/android/telecomm/StatusHints.java
index 0cf1295..f7c4f2f 100644
--- a/telecomm/java/android/telecomm/StatusHints.java
+++ b/telecomm/java/android/telecomm/StatusHints.java
@@ -121,7 +121,7 @@ public final class StatusHints implements Parcelable {
return null;
}
try {
- return packageContext.getResources().getDrawable(resId);
+ return packageContext.getDrawable(resId);
} catch (MissingResourceException e) {
Log.e(this, e, "Cannot find icon %d in package %s",
resId, mComponentName.getPackageName());