summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java
index 0402a7d..599180c 100644
--- a/src/com/android/settings/profiles/SetupActionsFragment.java
+++ b/src/com/android/settings/profiles/SetupActionsFragment.java
@@ -281,11 +281,11 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
mProfile.getDefaultGroup().getUuid())));
}
}
- if (groupsAdded > 0) {
- // add dummy "add/remove app groups" entry
+ if (mProfileManager.getNotificationGroups().length > 0) {
+ // if there are notification groups available, allow them to be configured
mItems.add(new AppGroupItem());
- } else {
- // remove the header since there are no options
+ } else if (groupsAdded == 0) {
+ // no notification groups available at all, nothing to add/remove
mItems.remove(mItems.get(mItems.size() - 1));
}