From 3af7e5675e118b3f135b5bab1da1f666c8f268d6 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 15 Apr 2015 11:05:54 -0700 Subject: Use TelecommManager.getDefaultOutgoingPhoneAccount Bug: 20224972 Change-Id: If7f1bde0229044f60bc889b380bc3e49e043e3ff --- src/com/android/dialer/SpecialCharSequenceMgr.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/SpecialCharSequenceMgr.java') diff --git a/src/com/android/dialer/SpecialCharSequenceMgr.java b/src/com/android/dialer/SpecialCharSequenceMgr.java index 1e686125f..88fad95bb 100644 --- a/src/com/android/dialer/SpecialCharSequenceMgr.java +++ b/src/com/android/dialer/SpecialCharSequenceMgr.java @@ -30,6 +30,7 @@ import android.database.Cursor; import android.net.Uri; import android.os.Looper; import android.provider.Settings; +import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; import android.telecom.TelecomManager; import android.telephony.PhoneNumberUtils; @@ -213,7 +214,7 @@ public class SpecialCharSequenceMgr { PhoneAccountUtils.getSubscriptionPhoneAccounts(context); boolean hasUserSelectedDefault = subscriptionAccountHandles.contains( - telecomManager.getUserSelectedOutgoingPhoneAccount()); + telecomManager.getDefaultOutgoingPhoneAccount(PhoneAccount.SCHEME_TEL)); if (subscriptionAccountHandles.size() == 1 || hasUserSelectedDefault) { Uri uri = telecomManager.getAdnUriForPhoneAccount(null); @@ -278,7 +279,7 @@ public class SpecialCharSequenceMgr { List subscriptionAccountHandles = PhoneAccountUtils.getSubscriptionPhoneAccounts(context); boolean hasUserSelectedDefault = subscriptionAccountHandles.contains( - telecomManager.getUserSelectedOutgoingPhoneAccount()); + telecomManager.getDefaultOutgoingPhoneAccount(PhoneAccount.SCHEME_TEL)); if (subscriptionAccountHandles.size() == 1 || hasUserSelectedDefault) { // Don't bring up the dialog for single-SIM or if the default outgoing account is -- cgit v1.2.3