summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2015-09-28 17:44:40 +0200
committerAdnan Begovic <adnan@cyngn.com>2015-10-27 14:09:55 -0700
commit999c4022c408e2a3c6c37fa3a47d09a6eec282fc (patch)
tree57b8265966512416d2065236d66765f5252c21f8 /src/com/android/settings/profiles
parent32595464601e7d20eb0283aac5d110a70129d4a2 (diff)
downloadpackages_apps_Settings-999c4022c408e2a3c6c37fa3a47d09a6eec282fc.zip
packages_apps_Settings-999c4022c408e2a3c6c37fa3a47d09a6eec282fc.tar.gz
packages_apps_Settings-999c4022c408e2a3c6c37fa3a47d09a6eec282fc.tar.bz2
ProfileGroupConfig: Use CMSDK profile manager
* Should fix the NPE on 145th line Change-Id: Icfbb961a4f562d977bf14fbfa603c7bb11d2cdca
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/ProfileGroupConfig.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/ProfileGroupConfig.java b/src/com/android/settings/profiles/ProfileGroupConfig.java
index 9219967..cd37487 100644
--- a/src/com/android/settings/profiles/ProfileGroupConfig.java
+++ b/src/com/android/settings/profiles/ProfileGroupConfig.java
@@ -35,8 +35,6 @@ import com.android.settings.SettingsPreferenceFragment;
public class ProfileGroupConfig extends SettingsPreferenceFragment implements
OnPreferenceChangeListener {
- public static final String PROFILE_SERVICE = "profile";
-
private static final CharSequence KEY_SOUNDMODE = "sound_mode";
private static final CharSequence KEY_VIBRATEMODE = "vibrate_mode";
@@ -83,7 +81,7 @@ public class ProfileGroupConfig extends SettingsPreferenceFragment implements
mProfile = (Profile) args.getParcelable("Profile");
UUID uuid = UUID.fromString(args.getString("ProfileGroup"));
- mProfileManager = (ProfileManager) getSystemService(PROFILE_SERVICE);
+ mProfileManager = ProfileManager.getInstance(getActivity());
mProfileGroup = mProfile.getProfileGroup(uuid);
mRingerMode = (ListPreference) findPreference(KEY_RINGERMODE);