diff options
Diffstat (limited to 'src/com/android/settings/profiles/NFCProfileWriter.java')
-rw-r--r-- | src/com/android/settings/profiles/NFCProfileWriter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/NFCProfileWriter.java b/src/com/android/settings/profiles/NFCProfileWriter.java index 72b8c13..8b50ffe 100644 --- a/src/com/android/settings/profiles/NFCProfileWriter.java +++ b/src/com/android/settings/profiles/NFCProfileWriter.java @@ -20,8 +20,6 @@ import java.util.UUID; import android.app.Activity; import android.app.PendingIntent; -import android.app.Profile; -import android.app.ProfileManager; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; @@ -31,6 +29,9 @@ import android.os.Bundle; import android.util.Log; import android.widget.Toast; +import cyanogenmod.app.Profile; +import cyanogenmod.app.ProfileManager; + import com.android.settings.R; /** @@ -57,7 +58,7 @@ public class NFCProfileWriter extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mNfcAdapter = NfcAdapter.getDefaultAdapter(this); - mProfileManager = (ProfileManager) getSystemService(Context.PROFILE_SERVICE); + mProfileManager = ProfileManager.getInstance(this); setContentView(R.layout.nfc_writer); setTitle(R.string.profile_write_nfc_tag); |