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

Commit 0044b4ad authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

Merge d350dc04 from gingerbread

Change-Id: Ieb76b9724a3e253f9614d02cc06d3348b8e2c929
parents 355f6691 d350dc04
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -118642,6 +118642,8 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="IOException" type="java.io.IOException">
</exception>
</method>
<method name="connect"
 return="void"
@@ -119740,6 +119742,8 @@
 deprecated="not deprecated"
 visibility="public"
>
<implements name="java.io.Closeable">
</implements>
<method name="close"
 return="void"
 abstract="true"
@@ -119750,6 +119754,8 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="IOException" type="java.io.IOException">
</exception>
</method>
<method name="connect"
 return="void"
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ import java.io.IOException;
    }

    @Override
    public void close() {
    public void close() throws IOException {
        try {
            /* Note that we don't want to physically disconnect the tag,
             * but just reconnect to it to reset its state
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ public final class IsoDep extends BasicTagTechnology {
    }

    @Override
    public void close() {
    public void close() throws IOException {
        try {
            mTag.getTagService().resetIsoDepTimeout();
        } catch (RemoteException e) {
+3 −2
Original line number Diff line number Diff line
@@ -18,9 +18,10 @@ package android.nfc.tech;

import android.nfc.Tag;

import java.io.Closeable;
import java.io.IOException;

public interface TagTechnology {
public interface TagTechnology extends Closeable {
    /**
     * This technology is an instance of {@link NfcA}.
     * <p>Support for this technology type is mandatory.
@@ -135,5 +136,5 @@ public interface TagTechnology {
     * @see #connect()
     * @see #reconnect()
     */
    public void close();
    public void close() throws IOException;
}