Skip to content

Commit d8ccd71

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Parcel compRequired flag correctly."
2 parents 0f160c9 + 73f5618 commit d8ccd71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

telephony/java/com/android/internal/telephony/cat/CommandDetails.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ public boolean compareTo(CommandDetails other) {
4848
}
4949

5050
public CommandDetails(Parcel in) {
51-
compRequired = true;
51+
compRequired = in.readInt() != 0;
5252
commandNumber = in.readInt();
5353
typeOfCommand = in.readInt();
5454
commandQualifier = in.readInt();
5555
}
5656

5757
public void writeToParcel(Parcel dest, int flags) {
58+
dest.writeInt(compRequired ? 1 : 0);
5859
dest.writeInt(commandNumber);
5960
dest.writeInt(typeOfCommand);
6061
dest.writeInt(commandQualifier);
@@ -103,4 +104,4 @@ class ItemsIconId extends ValueObject {
103104
ComprehensionTlvTag getTag() {
104105
return ComprehensionTlvTag.ITEM_ICON_ID_LIST;
105106
}
106-
}
107+
}

0 commit comments

Comments
 (0)