diff options
author | Nancy Chen <nancychen@google.com> | 2014-09-15 17:58:14 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-09-16 13:58:56 -0700 |
commit | 90f2ffdd00b47e2cd863d4361204c1a6fb31e3a0 (patch) | |
tree | d6ed64932dce94f74314c99eee4e7f259b871bd4 /sip/src/com/android/services/telephony/sip/SipUtil.java | |
parent | cbc6088645d1eb1054f48af4e48730084dbcbf9f (diff) | |
download | android_packages_services_Telephony-90f2ffdd00b47e2cd863d4361204c1a6fb31e3a0.tar.gz android_packages_services_Telephony-90f2ffdd00b47e2cd863d4361204c1a6fb31e3a0.tar.bz2 android_packages_services_Telephony-90f2ffdd00b47e2cd863d4361204c1a6fb31e3a0.zip |
Remove ability to enable/disable phoneaccounts (2/6)
Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.
- Remove all references to enabling/disabling phone accounts
- Remove PhoneAccountSelectionPreferenceActivity and related UI code
+ Rename getEnabledPhoneAccounts -> getCallCapablePhoneAccounts
Bug: 17510811
Change-Id: I6ea5c73bc62f35c2e487dd4d1262c0336b8b6e1e
Diffstat (limited to 'sip/src/com/android/services/telephony/sip/SipUtil.java')
-rw-r--r-- | sip/src/com/android/services/telephony/sip/SipUtil.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sip/src/com/android/services/telephony/sip/SipUtil.java b/sip/src/com/android/services/telephony/sip/SipUtil.java index 458aaeb1d..e4d5d4ca4 100644 --- a/sip/src/com/android/services/telephony/sip/SipUtil.java +++ b/sip/src/com/android/services/telephony/sip/SipUtil.java @@ -95,20 +95,6 @@ public class SipUtil { } /** - * Determines if the {@link android.tlecom.PhoneAccount} associated with a {@link SipProfile} - * is enabled. - * - * @param context The {@link Context}. - * @param profile The {@link SipProfile}. - * @return {@code True} if the {@code PhoneAccount} is enabled. - */ - static boolean isPhoneAccountEnabled(Context context, SipProfile profile) { - PhoneAccount phoneAccount = TelecomManager.from(context) - .getPhoneAccount(SipUtil.createAccountHandle(context, profile.getUriString())); - return phoneAccount != null && phoneAccount.isEnabled(); - } - - /** * Creates a PhoneAccount for a SipProfile. * * @param context The context |