Skip to content
Snippets Groups Projects
Commit 74a7cb16 authored by Bruno Martins's avatar Bruno Martins Committed by Dhina17
Browse files

fixup! SystemUI: Enable NFC tile

Change-Id: Id963c168ceda7fbc674731a56408b36f166fb5cc
parent 9c6bc223
No related branches found
No related tags found
No related merge requests found
...@@ -155,11 +155,7 @@ public class NfcTile extends QSTileImpl<BooleanState> { ...@@ -155,11 +155,7 @@ public class NfcTile extends QSTileImpl<BooleanState> {
private NfcAdapter getAdapter() { private NfcAdapter getAdapter() {
if (mAdapter == null) { if (mAdapter == null) {
try { mAdapter = NfcAdapter.getDefaultAdapter(mContext.getApplicationContext());
mAdapter = NfcAdapter.getNfcAdapter(mContext.getApplicationContext());
} catch (UnsupportedOperationException e) {
mAdapter = null;
}
} }
return mAdapter; return mAdapter;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment