diff options
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r-- | src/com/android/settings/profiles/ProfileGroupConfig.java | 4 |
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); |