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

Commit 43b6a3ff authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents abd0dcd6 1221ed57
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -355,7 +355,8 @@ public class CallingAccountSelector implements PreCallAction {
      while (cursor.moveToNext()) {
      while (cursor.moveToNext()) {
        Optional<String> accountType =
        Optional<String> accountType =
            getAccountType(context.getContentResolver(), cursor.getLong(0));
            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);
          LogUtil.i("CallingAccountSelector.getDataId", "ignoring non-writable " + accountType);
          continue;
          continue;
        }
        }