summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2016-09-18 17:39:21 +0200
committerLuca Stefani <luca.stefani.ge1@gmail.com>2016-09-18 10:07:50 -0700
commite94c0727f5fa5cf95f832b9d2a457c01c1fe1b0c (patch)
tree4c7fee74d54105fbaa10f2045cc7528cac01c4ac
parent4a78446c3e9eab9c116e1523425d366f401ef13e (diff)
downloadpackages_apps_Settings-e94c0727f5fa5cf95f832b9d2a457c01c1fe1b0c.zip
packages_apps_Settings-e94c0727f5fa5cf95f832b9d2a457c01c1fe1b0c.tar.gz
packages_apps_Settings-e94c0727f5fa5cf95f832b9d2a457c01c1fe1b0c.tar.bz2
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
-rw-r--r--src/com/android/settings/notificationlight/NotificationLightSettings.java2
1 files changed, 1 insertions, 1 deletions
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(