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

Commit 61d2a43f authored by Ruchi Kandoi's avatar Ruchi Kandoi Committed by android-build-merger
Browse files

Merge "nfc: First chunked NDEF record of TNF doesn't contain the type field" am: 7b0d1624

am: 9377a53a

Change-Id: Ib8196c580da8fc8602e2a88945050b84545576e8
parents afc5f223 9377a53a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -839,7 +839,7 @@ public final class NdefRecord implements Parcelable {

                if (cf && !inChunk) {
                    // first chunk
                    if (typeLength == 0) {
                    if (typeLength == 0 && tnf != NdefRecord.TNF_UNKNOWN) {
                        throw new FormatException("expected non-zero type length in first chunk");
                    }
                    chunks.clear();