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

Commit 04be8898 authored by LuK1337's avatar LuK1337 Committed by Michael Bestas
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 a6c72d76
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,4 +21,8 @@
         * Right -> 53 (Gravity.TOP | Gravity.RIGHT)
    -->
    <integer name="hardware_ui_align">53</integer>

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

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

    private boolean mIsStaticLayout = true;