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

Commit 79e76f52 authored by Nick Pelly's avatar Nick Pelly Committed by Android (Google) Code Review
Browse files

Merge "Fixed NdefTag parcelable conversion methods." into gingerbread

parents 89821204 e2e4ea9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -205,6 +205,7 @@ public class NdefTag extends Tag implements Parcelable {
        dest.writeStringArray(mNdefTargets);
        dest.writeInt(mMessages.length);
        for (NdefMessage[] ms : mMessages) {
            dest.writeInt(ms.length);
            dest.writeTypedArray(ms, flags);
        }
    }
+0 −1
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@ public class RawTagConnection {

        mService = service;
        mTagService = service.getNfcTagInterface();
        mService.openTagConnection(tag);  // TODO(nxp): don't connect until connect()
        mTag = tag;
        mSelectedTarget = target;
    }
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ public class Tag implements Parcelable {
    /*package*/ static byte[] readBytesWithNull(Parcel in) {
        int len = in.readInt();
        byte[] result = null;
        if (len > 0) {
        if (len >= 0) {
            result = new byte[len];
            in.readByteArray(result);
        }