summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/ProfilesSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/ProfilesSettings.java')
-rw-r--r--src/com/android/settings/profiles/ProfilesSettings.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java
index 92a9610..e97ce15 100644
--- a/src/com/android/settings/profiles/ProfilesSettings.java
+++ b/src/com/android/settings/profiles/ProfilesSettings.java
@@ -57,6 +57,7 @@ public class ProfilesSettings extends SettingsPreferenceFragment {
public static final String EXTRA_NEW_PROFILE = "new_profile_mode";
private static final int MENU_RESET = Menu.FIRST;
+ private static final int MENU_APP_GROUPS = Menu.FIRST + 1;
private final IntentFilter mFilter;
private final BroadcastReceiver mReceiver;
@@ -169,6 +170,8 @@ public class ProfilesSettings extends SettingsPreferenceFragment {
.setAlphabeticShortcut('r')
.setEnabled(mEnabled)
.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
+ menu.add(0, MENU_APP_GROUPS, 0, R.string.profile_appgroups_title)
+ .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
}
@Override
@@ -177,6 +180,10 @@ public class ProfilesSettings extends SettingsPreferenceFragment {
case MENU_RESET:
resetAll();
return true;
+ case MENU_APP_GROUPS:
+ startFragment(this, AppGroupList.class.getName(),
+ R.string.profile_appgroups_title, 0, null);
+ return true;
}
return super.onOptionsItemSelected(item);
}