Skip to content
Snippets Groups Projects
Commit 09588f64 authored by Nick Pelly's avatar Nick Pelly
Browse files

Fix BasicNfcEeTest java package.

It was in com.android.nfc_extras, which caused it to get bundled with
com.android.nfc_extras.jar, which caused all kinds of confusion when
trying to push new versions of the test.

It should be in com.android.nfc_extras.tests

Also fix getContext() -> getTargetContext().

Change-Id: I1e3afa150809a3ed8c4f88531f039fe7797aca1d
parent 7da48db9
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.nfc_extras;
package com.android.nfc_extras.tests;
import android.content.Context;
import android.nfc.NfcAdapter;
......@@ -48,7 +48,7 @@ public class BasicNfcEeTest extends InstrumentationTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
mContext = getInstrumentation().getContext();
mContext = getInstrumentation().getTargetContext();
mAdapterExtras = NfcAdapterExtras.get(NfcAdapter.getDefaultAdapter(mContext));
mEe = mAdapterExtras.getEmbeddedExecutionEnvironment();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment