From 08f797a7e82530c4c42a8c1f5d0563361be0023d Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Fri, 17 Jul 2015 13:30:29 -0700 Subject: Settings: Make sure we're getting the instance of ProfileManager. Ticket: BAMBOO-156 Change-Id: Ie4e576c3cae145339816bc6044d4fd43dde0efd6 --- src/com/android/settings/profiles/AppGroupConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/settings/profiles') 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(); -- cgit v1.1