Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 5f04d9a2 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
Browse files

fixup! SystemUI: Enable NFC tile

Change-Id: Id963c168ceda7fbc674731a56408b36f166fb5cc
parent fb8a938d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -155,11 +155,7 @@ public class NfcTile extends QSTileImpl<BooleanState> {

    private NfcAdapter getAdapter() {
        if (mAdapter == null) {
            try {
                mAdapter = NfcAdapter.getNfcAdapter(mContext.getApplicationContext());
            } catch (UnsupportedOperationException e) {
                mAdapter = null;
            }
            mAdapter = NfcAdapter.getDefaultAdapter(mContext.getApplicationContext());
        }
        return mAdapter;
    }