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
}
/* 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(