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

Commit 7e5b272d authored by Sara Ting's avatar Sara Ting
Browse files

Tweaking display of time/location/description in an expanded current/future...

Tweaking display of time/location/description in an expanded current/future notification to match Gmail.

Bug:6282451

Change-Id: I3b208506b774bfce6fe93645fa3e2b686c7720de
parent 24be4728
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -352,6 +352,8 @@
    <!-- The button label for making the reminder alarms go away temporarily
         and re-fire in 5 minutes. [CHAR LIMIT=30]-->
    <string name="snooze_5min_label">"Snooze for 5 minutes"</string>
    <!-- Format string used when displaying the big text of a future/current event notification. [CHAR LIMIT=120] -->
    <string name="event_notification_big_text"><xliff:g id="summary">%1$s</xliff:g> \u2022 <xliff:g id="description">%2$s</xliff:g></string>

    <!-- Repetition dialog options: -->
    <skip/>
+3 −5
Original line number Diff line number Diff line
@@ -258,11 +258,9 @@ public class AlertReceiver extends BroadcastReceiver {
            // Create an expanded notification.
            Notification.BigTextStyle expandedBuilder = new Notification.BigTextStyle(
                    basicBuilder);
            SpannableStringBuilder stringBuilder = new SpannableStringBuilder();
            stringBuilder.append(summaryText);
            stringBuilder.append("\n");
            stringBuilder.append(description);
            expandedBuilder.bigText(stringBuilder);
            String text = context.getResources().getString(
                    R.string.event_notification_big_text, summaryText, description);
            expandedBuilder.bigText(text);
            return expandedBuilder.build();
        }
    }