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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();
    }