summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/SetupTriggersFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/SetupTriggersFragment.java')
-rw-r--r--src/com/android/settings/profiles/SetupTriggersFragment.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/SetupTriggersFragment.java b/src/com/android/settings/profiles/SetupTriggersFragment.java
index bd1f8ee..1fa6428 100644
--- a/src/com/android/settings/profiles/SetupTriggersFragment.java
+++ b/src/com/android/settings/profiles/SetupTriggersFragment.java
@@ -18,8 +18,6 @@ package com.android.settings.profiles;
import android.annotation.Nullable;
import android.app.ActionBar;
import android.app.Activity;
-import android.app.Profile;
-import android.app.ProfileManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
@@ -30,6 +28,10 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
+
+import cyanogenmod.app.Profile;
+import cyanogenmod.app.ProfileManager;
+
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.SubSettings;
@@ -70,7 +72,7 @@ public class SetupTriggersFragment extends SettingsPreferenceFragment {
mNewProfileMode = getArguments().getBoolean(ProfilesSettings.EXTRA_NEW_PROFILE, false);
mPreselectedItem = getArguments().getInt(EXTRA_INITIAL_PAGE, 0);
}
- mProfileManager = (ProfileManager) getActivity().getSystemService(Context.PROFILE_SERVICE);
+ mProfileManager = ProfileManager.getInstance(getActivity());
}
@Override