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

Commit ba20a74c authored by Sara Ting's avatar Sara Ting Committed by Android (Google) Code Review
Browse files

Merge "Turn off notification timestamp." into jb-dev

parents 25c0cc82 91beed0c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -207,7 +207,6 @@ public class AlertReceiver extends BroadcastReceiver {
        Notification.Builder notificationBuilder = new Notification.Builder(context);
        notificationBuilder.setContentTitle(title);
        notificationBuilder.setContentText(summaryText);
        // TODO: change to the clock icon
        notificationBuilder.setSmallIcon(R.drawable.stat_notify_calendar);
        notificationBuilder.setContentIntent(clickIntent);
        notificationBuilder.setDeleteIntent(deleteIntent);
@@ -229,6 +228,9 @@ public class AlertReceiver extends BroadcastReceiver {
            notificationBuilder.setFullScreenIntent(clickIntent, true);
        }

        // Turn off timestamp.
        notificationBuilder.setWhen(0);

        // Setting to a higher priority will encourage notification manager to expand the
        // notification.
        if (highPriority) {