diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-06-25 12:53:50 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:12:36 -0700 |
commit | 28f65a49c84d32fd67c638d72276043ed3165822 (patch) | |
tree | 89090c766bec6cba13512091127a63fe13306c70 /src/com/android/settings/profiles/AppGroupList.java | |
parent | b23be8fc9e25d18f69289aba5896d42d8a68a591 (diff) | |
download | packages_apps_Settings-28f65a49c84d32fd67c638d72276043ed3165822.zip packages_apps_Settings-28f65a49c84d32fd67c638d72276043ed3165822.tar.gz packages_apps_Settings-28f65a49c84d32fd67c638d72276043ed3165822.tar.bz2 |
Settings: Refactor to point at Profiles in CMSDK.
Change-Id: I589dd372a58d8aca0f804e419992c28188d5380c
Diffstat (limited to 'src/com/android/settings/profiles/AppGroupList.java')
-rw-r--r-- | src/com/android/settings/profiles/AppGroupList.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/settings/profiles/AppGroupList.java b/src/com/android/settings/profiles/AppGroupList.java index febea3f..2dfb654 100644 --- a/src/com/android/settings/profiles/AppGroupList.java +++ b/src/com/android/settings/profiles/AppGroupList.java @@ -21,14 +21,12 @@ import java.util.UUID; import android.annotation.Nullable; import android.app.AlertDialog; import android.app.NotificationGroup; -import android.app.ProfileManager; +import cyanogenmod.app.ProfileManager; import android.content.Context; import android.content.DialogInterface; import android.os.Bundle; import android.preference.Preference; -import android.preference.PreferenceActivity; import android.preference.PreferenceScreen; -import android.provider.Settings; import android.view.LayoutInflater; import android.view.View; @@ -39,7 +37,6 @@ import android.widget.Toast; import com.android.internal.util.cm.ScreenType; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; -import com.android.settings.Utils; public class AppGroupList extends SettingsPreferenceFragment { @@ -57,7 +54,7 @@ public class AppGroupList extends SettingsPreferenceFragment { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.appgroup_list); - mProfileManager = (ProfileManager) getActivity().getSystemService(Context.PROFILE_SERVICE); + mProfileManager = ProfileManager.getInstance(getActivity()); } @Override |