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

Commit 7c5d40e0 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 0db5308d
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
<!--
     Copyright (C) 2018 The LineageOS Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <!-- Max visible notification icons -->
    <integer name="config_maxVisibleNotificationIcons">4</integer>
    <integer name="config_maxVisibleNotificationIconsOnLock">3</integer>
</resources>
+6 −3
Original line number Diff line number Diff line
@@ -137,11 +137,14 @@ public class NotificationIconContainer extends AlphaOptimizedFrameLayout {
        }
    }.setDuration(CONTENT_FADE_DURATION);

    private static final int MAX_ICONS_ON_AOD = 3;
    private final int MAX_ICONS_ON_AOD =
            getResources().getInteger(R.integer.config_maxVisibleNotificationIconsOnLock);

    /* Maximum number of icons in short shelf on lockscreen when also showing overflow dot. */
    public static final int MAX_ICONS_ON_LOCKSCREEN = 3;
    public static final int MAX_STATIC_ICONS = 4;
    public final int MAX_ICONS_ON_LOCKSCREEN =
            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;