summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/calllog/CallLogNotificationsHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogNotificationsHelper.java')
-rw-r--r--src/com/android/dialer/calllog/CallLogNotificationsHelper.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/CallLogNotificationsHelper.java b/src/com/android/dialer/calllog/CallLogNotificationsHelper.java
index 91012b54e..df08e4db9 100644
--- a/src/com/android/dialer/calllog/CallLogNotificationsHelper.java
+++ b/src/com/android/dialer/calllog/CallLogNotificationsHelper.java
@@ -78,6 +78,16 @@ public class CallLogNotificationsHelper {
}
/**
+ * Get all missed calls with the "new" flag set to 1.
+ *
+ * @return A list of NewCall objects where each object represents a new missed call.
+ */
+ @Nullable
+ public List<NewCall> getNewMissedCalls() {
+ return mNewCallsQuery.query(Calls.MISSED_TYPE);
+ }
+
+ /**
* Given a number and number information (presentation and country ISO), get the best name
* for display. If the name itself if already available, return that. Otherwise attempt to look
* it up in the database. If that fails, fall back to displaying the number.