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

Commit 575a4d2a authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "Fix bug #17624121 Settings crash while launching on wiped device" into lmp-dev

parents 3b04714b b3c7a179
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1177,7 +1177,8 @@ public class SettingsActivity extends Activity
                    } else {
                        // Only show if NFC is on and we have the HCE feature
                        NfcAdapter adapter = NfcAdapter.getDefaultAdapter(this);
                        if (!adapter.isEnabled() || !getPackageManager().hasSystemFeature(
                        if (adapter == null || !adapter.isEnabled() ||
                                !getPackageManager().hasSystemFeature(
                                        PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) {
                            removeTile = true;
                        }