summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/util
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-03-22 15:10:59 -0700
committerSteve Kondik <steve@cyngn.com>2015-03-22 15:10:59 -0700
commit516b8b57f2a445afe1b1ef212e9abfa4549a13c7 (patch)
tree353c2eb62236acb95bc7cf0053ca784a612d14b1 /src/com/android/contacts/common/util
parent54dc3c56e336d304d63dc2b7e2cc22934e6a9ffd (diff)
downloadandroid_packages_apps_ContactsCommon-516b8b57f2a445afe1b1ef212e9abfa4549a13c7.tar.gz
android_packages_apps_ContactsCommon-516b8b57f2a445afe1b1ef212e9abfa4549a13c7.tar.bz2
android_packages_apps_ContactsCommon-516b8b57f2a445afe1b1ef212e9abfa4549a13c7.zip
contacts-common: Update for multisim APIs
Change-Id: Ia0cb350075bf468cbeb053ff436fc5e9baf65509
Diffstat (limited to 'src/com/android/contacts/common/util')
-rw-r--r--src/com/android/contacts/common/util/TelephonyManagerUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/contacts/common/util/TelephonyManagerUtils.java b/src/com/android/contacts/common/util/TelephonyManagerUtils.java
index 1334bec6..374743d1 100644
--- a/src/com/android/contacts/common/util/TelephonyManagerUtils.java
+++ b/src/com/android/contacts/common/util/TelephonyManagerUtils.java
@@ -113,7 +113,7 @@ public class TelephonyManagerUtils {
if (account == null) {
return null;
}
- return account.getIcon(context);
+ return account.createIconDrawable(context);
}
public static Drawable getMultiSimIcon(Context context, int subscription) {
@@ -122,7 +122,7 @@ public class TelephonyManagerUtils {
return null;
}
- long subId[] = SubscriptionManager.getSubId(subscription);
+ int subId[] = SubscriptionManager.getSubId(subscription);
if (subId == null) {
return null;
}
@@ -141,6 +141,6 @@ public class TelephonyManagerUtils {
}
final PhoneAccount account = telecomManager
.getPhoneAccount(phoneAccountHandle);
- return account.getIcon(context);
+ return account.createIconDrawable(context);
}
}