summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-07-17 13:30:29 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-27 14:07:50 -0700
commit08f797a7e82530c4c42a8c1f5d0563361be0023d (patch)
treee19214e13b9ba4fa63809864f69046c418da7c78 /src/com/android/settings/profiles
parent95c1716c21057e682be195783c42dba35a86bb6b (diff)
downloadpackages_apps_Settings-08f797a7e82530c4c42a8c1f5d0563361be0023d.zip
packages_apps_Settings-08f797a7e82530c4c42a8c1f5d0563361be0023d.tar.gz
packages_apps_Settings-08f797a7e82530c4c42a8c1f5d0563361be0023d.tar.bz2
Settings: Make sure we're getting the instance of ProfileManager.
Ticket: BAMBOO-156 Change-Id: Ie4e576c3cae145339816bc6044d4fd43dde0efd6
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/AppGroupConfig.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/AppGroupConfig.java b/src/com/android/settings/profiles/AppGroupConfig.java
index a34f180..82e0d83 100644
--- a/src/com/android/settings/profiles/AppGroupConfig.java
+++ b/src/com/android/settings/profiles/AppGroupConfig.java
@@ -81,7 +81,7 @@ public class AppGroupConfig extends SettingsPreferenceFragment
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- mProfileManager = (ProfileManager) getActivity().getSystemService(PROFILE_SERVICE);
+ mProfileManager = ProfileManager.getInstance(getActivity());
addPreferencesFromResource(R.xml.application_list);
final Bundle args = getArguments();