summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/dialer/precall/impl/CallingAccountSelector.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/dialer/precall/impl/CallingAccountSelector.java b/java/com/android/dialer/precall/impl/CallingAccountSelector.java
index 43f668084..afc1eadf1 100644
--- a/java/com/android/dialer/precall/impl/CallingAccountSelector.java
+++ b/java/com/android/dialer/precall/impl/CallingAccountSelector.java
@@ -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;
}