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

Commit dd61a569 authored by d34d's avatar d34d Committed by Steve Kondik
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 5b4d5ac3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20,4 +20,10 @@

    <!-- Weather string format in expanded statusbar header -->
    <string name="status_bar_expanded_header_weather_format"><xliff:g id="temp">%1$s</xliff:g> - <xliff:g id="condition">%2$s</xliff:g></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
@@ -291,7 +291,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);