commit | df336ccf294ec3e331235f555fa228f571257869 | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Thu Dec 09 19:47:54 2010 -0800 |
committer | Nick Pelly <npelly@google.com> | Thu Dec 09 19:47:54 2010 -0800 |
tree | f96372007d7ad65c1a2285e0bfca09aff635ed5b | |
parent | 525455ce56b8a4f7405578de9b0fd46f4cca7500 [diff] |
Update NfcAdapter.getDefaultAdapter() API in cts. Change-Id: I718ed1f57ee2a754b93212efb871b3774c8ed062
diff --git a/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java b/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java index d4fabac..1f7c9f8 100644 --- a/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java +++ b/tests/tests/app/src/android/app/cts/SystemFeaturesTest.java
@@ -196,7 +196,7 @@ } public void testNfcFeatures() { - if (NfcAdapter.getDefaultAdapter() != null) { + if (NfcAdapter.getDefaultAdapter(mContext) != null) { assertAvailable(PackageManager.FEATURE_NFC); } else { assertNotAvailable(PackageManager.FEATURE_NFC);