diff options
Diffstat (limited to 'src/com/android/settings/profiles/NFCProfileSelect.java')
-rw-r--r-- | src/com/android/settings/profiles/NFCProfileSelect.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/com/android/settings/profiles/NFCProfileSelect.java b/src/com/android/settings/profiles/NFCProfileSelect.java index c66de64..2c2fab8 100644 --- a/src/com/android/settings/profiles/NFCProfileSelect.java +++ b/src/com/android/settings/profiles/NFCProfileSelect.java @@ -19,22 +19,17 @@ package com.android.settings.profiles; import java.util.UUID; import android.app.Activity; -import android.app.PendingIntent; -import android.app.Profile; -import android.app.ProfileManager; import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; -import android.content.Intent; -import android.content.IntentFilter; -import android.nfc.NfcAdapter; -import android.nfc.Tag; import android.os.Bundle; -import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Toast; +import cyanogenmod.app.Profile; +import cyanogenmod.app.ProfileManager; + import com.android.settings.R; /** @@ -58,7 +53,7 @@ public class NFCProfileSelect extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - mProfileManager = (ProfileManager) getSystemService(Context.PROFILE_SERVICE); + mProfileManager = ProfileManager.getInstance(this); setContentView(R.layout.nfc_select); setTitle(R.string.profile_unknown_nfc_tag); |