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

Commit c90ed73b authored by Sara Ting's avatar Sara Ting
Browse files

Remove occasional extra bullet at the end of notification text.

Change-Id: I559e5cc5c7ee5a753ceb3a70ced6688a2d8a43ec
parent 8748724e
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -250,20 +250,22 @@ public class AlertReceiver extends BroadcastReceiver {
                summaryText, startMillis, endMillis, eventId, notificationId,
                doPopup, highPriority, true);

        if (TextUtils.isEmpty(description)) {
            // When no description, don't use BigTextStyle since it puts too much whitespace.
            // This still has the same desired behavior (expands with buttons, pinch closed, etc).
            return basicBuilder.build();
        } else {
            // Create an expanded notification.
        // Create an expanded notification
        Notification.BigTextStyle expandedBuilder = new Notification.BigTextStyle(
                basicBuilder);
            String text = context.getResources().getString(
        if (description != null) {
            description = description.trim();
        }
        String text;
        if (TextUtils.isEmpty(description)) {
            text = summaryText;
        } else {
            text = context.getResources().getString(
                    R.string.event_notification_big_text, summaryText, description);
        }
        expandedBuilder.bigText(text);
        return expandedBuilder.build();
    }
    }

    /**
     * Creates an expanding digest notification for expired events.