Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb49f977 authored by Nancy Chen's avatar Nancy Chen
Browse files

Remove ability to enable/disable phoneaccounts (4/6)

Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.

Bug: 17510811

Change-Id: I41a2d11cfa85343fdf3f8681f1152d94abd79d2f
parent 9dc924c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public class PhoneAccountUtils {
        final TelecomManager telecomManager =
                (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE);
        final PhoneAccount account = telecomManager.getPhoneAccount(phoneAccount);
        if (account == null || !telecomManager.hasMultipleEnabledAccounts()) {
        if (account == null || !telecomManager.hasMultipleCallCapableAccounts()) {
            return null;
        }
        return account;
+1 −1
Original line number Diff line number Diff line
@@ -399,7 +399,7 @@ public class FillCallLogTestActivity extends Activity {

    private PhoneAccountHandle getManualAccount() {
        TelecomManager telecomManager = TelecomManager.from(this);
        List <PhoneAccountHandle> accountHandles = telecomManager.getEnabledPhoneAccounts();
        List <PhoneAccountHandle> accountHandles = telecomManager.getCallCapablePhoneAccounts();
        if (mAccount0.isChecked()) {
            return accountHandles.get(0);
        } else if (mAccount1.isChecked()){