summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-06-25 12:58:04 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-06-25 17:36:50 -0700
commitf8542758467e2a0ce78b08f4f22de38652b38622 (patch)
tree3cd2b1bb133dd6f62f24053974e5b3c2582363ba /src
parent8fa506205ec1fdeabd965d3622a825ddfe30794c (diff)
downloadandroid_packages_apps_Profiles-f8542758467e2a0ce78b08f4f22de38652b38622.tar.gz
android_packages_apps_Profiles-f8542758467e2a0ce78b08f4f22de38652b38622.tar.bz2
android_packages_apps_Profiles-f8542758467e2a0ce78b08f4f22de38652b38622.zip
Profiles: Refactor to point at Profiles in CMSDK.
Change-Id: I8a819c80eaf3a8880893240fb26d3242781b9486
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/profiles/ProfilesTrustAgent.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/cyanogenmod/profiles/ProfilesTrustAgent.java b/src/org/cyanogenmod/profiles/ProfilesTrustAgent.java
index 41c50ae..ce25d26 100644
--- a/src/org/cyanogenmod/profiles/ProfilesTrustAgent.java
+++ b/src/org/cyanogenmod/profiles/ProfilesTrustAgent.java
@@ -16,8 +16,6 @@
package org.cyanogenmod.profiles;
-import android.app.Profile;
-import android.app.ProfileManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -27,6 +25,9 @@ import android.os.Message;
import android.service.trust.TrustAgentService;
import android.util.Log;
+import cyanogenmod.app.Profile;
+import cyanogenmod.app.ProfileManager;
+
import java.lang.ref.WeakReference;
/**
@@ -57,7 +58,7 @@ public class ProfilesTrustAgent extends TrustAgentService {
@Override
public void onCreate() {
super.onCreate();
- mProfileManager = (ProfileManager) getSystemService(Context.PROFILE_SERVICE);
+ mProfileManager = ProfileManager.getInstance(this);
mHandler = new ProfileHandler(ProfilesTrustAgent.this);
IntentFilter filter = new IntentFilter();