Loading nfc/java/android/nfc/NfcAdapter.java +2 −2 Original line number Diff line number Diff line Loading @@ -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?)"); } Loading Loading
nfc/java/android/nfc/NfcAdapter.java +2 −2 Original line number Diff line number Diff line Loading @@ -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?)"); } Loading