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

Commit ed93fea7 authored by d34d's avatar d34d Committed by Gerrit Code Review
Browse files

Show infinity for large notification counts

This patch adds a new string to SystemUI for displaying the infinity
symbol when a notification has a count larger than 999.  This only
affects the notification icon in the status bar and does not change
the text displayed in the actual notification.

Change-Id: Ie1b06c888a7e4e82147bb930b2715a3e97b6f009
REF: CYNGNOS-592
parent fa726418
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -310,4 +310,10 @@

    <!-- Empty view text for CustomQSTile -->
    <string name="quick_settings_custom_qs_detail_empty_text">No items found</string>

    <!-- Text to use when the number in a notification info is too large
         (greater than status_bar_notification_info_maxnum, defined in
         values/config.xml) and must be truncated.
         [CHAR LIMIT=4] -->
    <string name="status_bar_notification_info_overflow" translatable="false">\u221E</string>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ public class StatusBarIconView extends AnimatedImageView {
                android.R.integer.status_bar_notification_info_maxnum);
        if (mIcon.number > tooBig) {
            str = getContext().getResources().getString(
                        android.R.string.status_bar_notification_info_overflow);
                        R.string.status_bar_notification_info_overflow);
        } else {
            NumberFormat f = NumberFormat.getIntegerInstance();
            str = f.format(mIcon.number);