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

Commit 6b080357 authored by Nancy Chen's avatar Nancy Chen Committed by Android (Google) Code Review
Browse files

Merge "Remove ability to enable/disable phoneaccounts (4/6)" into lmp-dev

parents 58965944 fb49f977
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()){