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

Commit 2879d0b8 authored by liheng.x.zhang's avatar liheng.x.zhang Committed by takeshi tanigawa
Browse files

Show time stamp of missed call notification created by Telecom

If a default dialer does not implement
"android.telecom.action.SHOW_MISSED_CALLS_NOTIFICATION" receiver,
a missed call notification created by Telecom is shown. But the
time stamp information in the notification is missing. So, added
time stamp of missed call notification.

Test: manual - Checked the time stamp on Telecom missed call
notification
Bug: 62644406

Change-Id: Ica1ff913106b35f0690a566df330b4ea64c2fe5d
parent d52445de
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -310,6 +310,7 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements
        publicBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call)
                .setColor(mContext.getResources().getColor(R.color.theme_color))
                .setWhen(callInfo.getCreationTimeMillis())
                .setShowWhen(true)
                // Show "Phone" for notification title.
                .setContentTitle(mContext.getText(R.string.userCallActivityLabel))
                // Notification details shows that there are missed call(s), but does not reveal
@@ -324,6 +325,7 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements
        builder.setSmallIcon(android.R.drawable.stat_notify_missed_call)
                .setColor(mContext.getResources().getColor(R.color.theme_color))
                .setWhen(callInfo.getCreationTimeMillis())
                .setShowWhen(true)
                .setContentTitle(mContext.getText(titleResId))
                .setContentText(expandedText)
                .setContentIntent(createCallLogPendingIntent(userHandle))