Loading src/com/android/settings/WirelessSettings.java +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ public class WirelessSettings extends PreferenceActivity { } // Remove NFC if its not available if (NfcAdapter.getDefaultAdapter() == null) { if (NfcAdapter.getDefaultAdapter(this) == null) { getPreferenceScreen().removePreference(nfc); } Loading src/com/android/settings/nfc/NfcEnabler.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
src/com/android/settings/WirelessSettings.java +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ public class WirelessSettings extends PreferenceActivity { } // Remove NFC if its not available if (NfcAdapter.getDefaultAdapter() == null) { if (NfcAdapter.getDefaultAdapter(this) == null) { getPreferenceScreen().removePreference(nfc); } Loading
src/com/android/settings/nfc/NfcEnabler.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading