From 03d30a573b8bc8e169e153a0fffa053ffedcd5ee Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Thu, 14 Aug 2014 12:59:10 -0700 Subject: Make sure we're obtaining themed drawables correctly Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85 --- telecomm/java/android/telecomm/PhoneAccount.java | 2 +- telecomm/java/android/telecomm/StatusHints.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'telecomm/java/android') 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()); -- cgit v1.1