summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/calllog/CallLogNotificationsHelper.java
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2016-01-26 14:38:57 -0800
committerNancy Chen <nancychen@google.com>2016-01-27 16:50:10 -0800
commitcc42b5953588110cc89b43e72d2b6579757017a1 (patch)
treecbdf42c09424fc8d149dce1ac7e7a461b127ab0f /src/com/android/dialer/calllog/CallLogNotificationsHelper.java
parente96b82ccd6936d2f0786d3ae0740efdd2e60e7b4 (diff)
Display missed call notifications in Dialer.
Dialer is now putting up the missed call notification instead of Telecom. As a result, it has to handle receiving a new missed call broadcast and sending requests back to Telecom to update the missed call count. + MissedCallNotifier class displays notifications and triggers call back sms, and dismiss intents. + CallLogNotificationsService added actions it can handle for missed calls. + MissedCallNotificationReceiver receives the missed call intent to update the notifications. Bug: 22857261 Change-Id: I03a3c3b5a2533a3ea26d668124fcaf3fa72347fc
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.