Update Settings for new NfcAdapter.getDefaultAdapter(Context)

Change-Id: I3321d9ebd90313f98664d66b53bb36690808911a
This commit is contained in:
Nick Pelly
2010-12-09 19:39:58 -08:00
parent 2a7c542594
commit 267419ff8b
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener {
public NfcEnabler(Context context, CheckBoxPreference checkBoxPreference) {
mContext = context;
mCheckbox = checkBoxPreference;
mNfcAdapter = NfcAdapter.getDefaultAdapter();
mNfcAdapter = NfcAdapter.getDefaultAdapter(context);
if (mNfcAdapter == null) {
// NFC is not supported