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

Commit 89d59056 authored by LuK1337's avatar LuK1337 Committed by Bruno Martins
Browse files

SystemUI: Allow overlaying max notification icons

* I believe there are devices in this world that can fit
  more than 4 notification icons.

Change-Id: I8f01b4e0385b35f4ed93aab2619839e5b40ee0c7
parent 0d1cc355
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,4 +19,8 @@
         the sensor embedded in the power key and listening all the time
         causes a poor experience. -->
    <bool name="config_fingerprintWakeAndUnlock">true</bool>

    <!-- Max visible notification icons -->
    <integer name="config_maxVisibleNotificationIcons">4</integer>
    <integer name="config_maxVisibleNotificationIconsWhenDark">5</integer>
</resources>
+4 −2
Original line number Diff line number Diff line
@@ -127,8 +127,10 @@ public class NotificationIconContainer extends AlphaOptimizedFrameLayout {
        }
    }.setDuration(CONTENT_FADE_DURATION);

    public static final int MAX_VISIBLE_ICONS_WHEN_DARK = 5;
    public static final int MAX_STATIC_ICONS = 4;
    public final int MAX_VISIBLE_ICONS_WHEN_DARK =
            getResources().getInteger(R.integer.config_maxVisibleNotificationIconsWhenDark);
    public final int MAX_STATIC_ICONS =
            getResources().getInteger(R.integer.config_maxVisibleNotificationIcons);
    private static final int MAX_DOTS = 1;

    private boolean mIsStaticLayout = true;