summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java')
-rw-r--r--src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java b/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
index d7fa67e..834a5fc 100644
--- a/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
+++ b/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.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.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothClass;
import android.bluetooth.BluetoothDevice;
@@ -33,6 +31,10 @@ import android.widget.ArrayAdapter;
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;
@@ -68,7 +70,7 @@ public class BluetoothTriggerFragment extends ListFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- mProfileManager = (ProfileManager) getActivity().getSystemService(Context.PROFILE_SERVICE);
+ mProfileManager = ProfileManager.getInstance(getActivity());
if (getArguments() != null) {
mProfile = getArguments().getParcelable(ProfilesSettings.EXTRA_PROFILE);
}