diff options
author | Roman Birg <roman@cyngn.com> | 2015-03-03 15:21:54 -0800 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2015-12-27 23:24:20 +0200 |
commit | e14b877832637d904ca2b4e16cc0d84a8bba30aa (patch) | |
tree | aa91ccc0138967c4573365c76baaddae7246d52e /src/com/android/settings/profiles | |
parent | 1fb74bb2505865c7ffe3357f3534cf6494b2c0bd (diff) | |
download | packages_apps_Settings-e14b877832637d904ca2b4e16cc0d84a8bba30aa.zip packages_apps_Settings-e14b877832637d904ca2b4e16cc0d84a8bba30aa.tar.gz packages_apps_Settings-e14b877832637d904ca2b4e16cc0d84a8bba30aa.tar.bz2 |
Settings: always allow profile app groups to be linked/unlinked
Change-Id: I271d409f925805d26c918d156e8ae41253cc08b1
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r-- | src/com/android/settings/profiles/SetupActionsFragment.java | 8 |
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)); } |