From e94c0727f5fa5cf95f832b9d2a457c01c1fe1b0c Mon Sep 17 00:00:00 2001 From: Michael W Date: Sun, 18 Sep 2016 17:39:21 +0200 Subject: 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 --- .../android/settings/notificationlight/NotificationLightSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/settings/notificationlight') diff --git a/src/com/android/settings/notificationlight/NotificationLightSettings.java b/src/com/android/settings/notificationlight/NotificationLightSettings.java index c4b55d4..b17918a 100644 --- a/src/com/android/settings/notificationlight/NotificationLightSettings.java +++ b/src/com/android/settings/notificationlight/NotificationLightSettings.java @@ -286,7 +286,7 @@ public class NotificationLightSettings extends SettingsPreferenceFragment implem } /* Display a pref explaining how to add apps */ - if (mPackages.size() == 0) { + if (mApplicationPrefList.getPreferenceCount() == 0) { String summary = getResources().getString( R.string.notification_light_no_apps_summary); String useCustom = getResources().getString( -- cgit v1.1