am 2e75203a
: Use getDefaultAdapter instead of getNfcAdapter
* commit '2e75203a6ecb81725b68bced6c5f8d5be37365f1': Use getDefaultAdapter instead of getNfcAdapter
This commit is contained in:
@@ -519,8 +519,7 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
}
|
||||
if (mSelectedAccessPoint.networkId != INVALID_NETWORK_ID) {
|
||||
menu.add(Menu.NONE, MENU_ID_MODIFY, 0, R.string.wifi_menu_modify);
|
||||
|
||||
NfcAdapter nfcAdapter = NfcAdapter.getNfcAdapter(getActivity());
|
||||
NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(getActivity());
|
||||
if (nfcAdapter != null && nfcAdapter.isEnabled() &&
|
||||
mSelectedAccessPoint.security != AccessPoint.SECURITY_NONE) {
|
||||
// Only allow writing of NFC tags for password-protected networks.
|
||||
|
Reference in New Issue
Block a user