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

Commit 1221ed57 authored by yueg's avatar yueg Committed by Copybara-Service
Browse files

Make user able to set default sim when there is no account.

Test: CallingAccountSelectorTest, manual
PiperOrigin-RevId: 188089149
Change-Id: Id1be88124e243e46ac9b0277f40de142af6bb5a9
parent abd0dcd6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -355,7 +355,8 @@ public class CallingAccountSelector implements PreCallAction {
      while (cursor.moveToNext()) {
        Optional<String> accountType =
            getAccountType(context.getContentResolver(), cursor.getLong(0));
        if (!accountType.isPresent() || !validAccountTypes.contains(accountType.get())) {
        if (accountType.isPresent() && !validAccountTypes.contains(accountType.get())) {
          // Empty accountType is treated as writable
          LogUtil.i("CallingAccountSelector.getDataId", "ignoring non-writable " + accountType);
          continue;
        }