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

Commit 9d3f4d71 authored by Omer Ozer's avatar Omer Ozer
Browse files

Revert NFC adapter user context change.

Test: manual
Bug: b/291794775
Change-Id: I07e1679274ef8a413056ed09dccafcbe9e551841
parent 2ace02e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -812,8 +812,8 @@ public final class NfcAdapter {
        if (context == null) {
            throw new IllegalArgumentException("context cannot be null");
        }
        Context applicationContext = context.getApplicationContext();
        if (applicationContext == null) {
        context = context.getApplicationContext();
        if (context == null) {
            throw new IllegalArgumentException(
                    "context not associated with any application (using a mock context?)");
        }