summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/triggers/WifiTriggerFragment.java')
-rw-r--r--src/com/android/settings/profiles/triggers/WifiTriggerFragment.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java b/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
index 0f8fa6f..5ec1996 100644
--- a/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
+++ b/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
@@ -17,8 +17,6 @@ package com.android.settings.profiles.triggers;
import android.app.AlertDialog;
import android.app.ListFragment;
-import android.app.Profile;
-import android.app.ProfileManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
@@ -29,10 +27,13 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
-import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
+
+import cyanogenmod.app.Profile;
+import cyanogenmod.app.ProfileManager;
+
import com.android.settings.R;
import com.android.settings.profiles.ProfilesSettings;
@@ -69,7 +70,7 @@ public class WifiTriggerFragment extends ListFragment {
} else {
throw new UnsupportedOperationException("no profile!");
}
- mProfileManager = (ProfileManager) getActivity().getSystemService(Context.PROFILE_SERVICE);
+ mProfileManager = ProfileManager.getInstance(getActivity());
mWifiManager = (WifiManager) getActivity().getSystemService(Context.WIFI_SERVICE);
}