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

Commit 94c9b70f authored by LuK1337's avatar LuK1337 Committed by Han Wang
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 1ba83115
Loading
Loading
Loading
Loading
+20 −0
Original line number Original line 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">5</integer>
</resources>
+4 −2
Original line number Original line Diff line number Diff line
@@ -135,8 +135,10 @@ public class NotificationIconContainer extends AlphaOptimizedFrameLayout {
        }
        }
    }.setDuration(CONTENT_FADE_DURATION);
    }.setDuration(CONTENT_FADE_DURATION);


    private static final int MAX_VISIBLE_ICONS_ON_LOCK = 5;
    private final int MAX_VISIBLE_ICONS_ON_LOCK =
    public static final int MAX_STATIC_ICONS = 4;
            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 static final int MAX_DOTS = 1;


    private boolean mIsStaticLayout = true;
    private boolean mIsStaticLayout = true;