summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/SetupTriggersFragment.java
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-06-25 12:53:50 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-26 16:12:36 -0700
commit28f65a49c84d32fd67c638d72276043ed3165822 (patch)
tree89090c766bec6cba13512091127a63fe13306c70 /src/com/android/settings/profiles/SetupTriggersFragment.java
parentb23be8fc9e25d18f69289aba5896d42d8a68a591 (diff)
downloadpackages_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/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