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

Commit e94c0727 authored by Michael W's avatar Michael W Committed by Luca Stefani
Browse files

Settings: Notification light: Fix for app customization

If the list was filled with an app which gets deinstalled,
the previously introduced explanation is not shown anymore.
Make the display dependent on the real amount of added prefs,
not on the expected amount of apps in the list.

Change-Id: Id1f674d519a440e3d811d4dd565d760c045e9f84
parent 4a78446c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -286,7 +286,7 @@ public class NotificationLightSettings extends SettingsPreferenceFragment implem
            }
            }


            /* Display a pref explaining how to add apps */
            /* Display a pref explaining how to add apps */
            if (mPackages.size() == 0) {
            if (mApplicationPrefList.getPreferenceCount() == 0) {
                String summary = getResources().getString(
                String summary = getResources().getString(
                        R.string.notification_light_no_apps_summary);
                        R.string.notification_light_no_apps_summary);
                String useCustom = getResources().getString(
                String useCustom = getResources().getString(