summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/dialer/database/CallLogQueryHandler.java26
1 files changed, 14 insertions, 12 deletions
diff --git a/java/com/android/dialer/database/CallLogQueryHandler.java b/java/com/android/dialer/database/CallLogQueryHandler.java
index 4ccf68e4f..4867d9dce 100644
--- a/java/com/android/dialer/database/CallLogQueryHandler.java
+++ b/java/com/android/dialer/database/CallLogQueryHandler.java
@@ -188,20 +188,22 @@ public class CallLogQueryHandler extends NoNullCursorAsyncQueryHandler {
VoicemailComponent.get(mContext)
.getVoicemailClient()
.appendOmtpVoicemailSelectionClause(mContext, where, selectionArgs);
+ } else {
+ // Filter out all Duo entries other than video calls
+ where
+ .append(" AND (")
+ .append(Calls.PHONE_ACCOUNT_COMPONENT_NAME)
+ .append(" IS NULL OR ")
+ .append(Calls.PHONE_ACCOUNT_COMPONENT_NAME)
+ .append(" NOT LIKE 'com.google.android.apps.tachyon%' OR ")
+ .append(Calls.FEATURES)
+ .append(" & ")
+ .append(Calls.FEATURES_VIDEO)
+ .append(" == ")
+ .append(Calls.FEATURES_VIDEO)
+ .append(")");
}
- // Filter out all Duo entries other than video calls
- where
- .append(" AND (")
- .append(Calls.PHONE_ACCOUNT_COMPONENT_NAME)
- .append(" NOT LIKE 'com.google.android.apps.tachyon%' OR ")
- .append(Calls.FEATURES)
- .append(" & ")
- .append(Calls.FEATURES_VIDEO)
- .append(" == ")
- .append(Calls.FEATURES_VIDEO)
- .append(")");
-
final int limit = (mLogLimit == -1) ? NUM_LOGS_TO_DISPLAY : mLogLimit;
final String selection = where.length() > 0 ? where.toString() : null;
Uri uri =