summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts
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
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')
-rw-r--r--src/com/android/contacts/common/MoreContactUtils.java2
-rw-r--r--src/com/android/contacts/common/util/TelephonyManagerUtils.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/contacts/common/MoreContactUtils.java b/src/com/android/contacts/common/MoreContactUtils.java
index c76e289a..7e96c62a 100644
--- a/src/com/android/contacts/common/MoreContactUtils.java
+++ b/src/com/android/contacts/common/MoreContactUtils.java
@@ -876,7 +876,7 @@ public class MoreContactUtils {
public static PhoneAccountHandle getAccount(int slot) {
ComponentName serviceName = new ComponentName("com.android.phone",
"com.android.services.telephony.TelephonyConnectionService");
- long[] subId = SubscriptionManager.getSubId(slot);
+ int[] subId = SubscriptionManager.getSubId(slot);
return new PhoneAccountHandle(serviceName, String.valueOf(subId[0]));
}
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);
}
}