diff options
author | Yorke Lee <yorkelee@google.com> | 2015-04-15 11:05:54 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-04-15 11:05:54 -0700 |
commit | 3af7e5675e118b3f135b5bab1da1f666c8f268d6 (patch) | |
tree | 0340bb3aecbe0a0f6cde261a69184bcd25a78c64 /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 4fb0b8ebe4e411a2b73688adb01c8ae86a7852c6 (diff) |
Use TelecommManager.getDefaultOutgoingPhoneAccount
Bug: 20224972
Change-Id: If7f1bde0229044f60bc889b380bc3e49e043e3ff
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index a910f7a1e..9b71b98db 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -935,7 +935,8 @@ public class DialpadFragment extends Fragment List<PhoneAccountHandle> subscriptionAccountHandles = PhoneAccountUtils.getSubscriptionPhoneAccounts(getActivity()); boolean hasUserSelectedDefault = subscriptionAccountHandles.contains( - getTelecomManager().getUserSelectedOutgoingPhoneAccount()); + getTelecomManager().getDefaultOutgoingPhoneAccount( + PhoneAccount.SCHEME_VOICEMAIL)); boolean needsAccountDisambiguation = subscriptionAccountHandles.size() > 1 && !hasUserSelectedDefault; @@ -1526,7 +1527,8 @@ public class DialpadFragment extends Fragment private boolean isVoicemailAvailable() { try { PhoneAccountHandle defaultUserSelectedAccount = - getTelecomManager().getUserSelectedOutgoingPhoneAccount(); + getTelecomManager().getDefaultOutgoingPhoneAccount( + PhoneAccount.SCHEME_VOICEMAIL); if (defaultUserSelectedAccount == null) { // In a single-SIM phone, there is no default outgoing phone account selected by // the user, so just call TelephonyManager#getVoicemailNumber directly. |