am d8ccd712
: Merge "Parcel compRequired flag correctly."
* commit 'd8ccd712dac9e8f4e8068b02f5ca55b014de831a': Parcel compRequired flag correctly.
This commit is contained in:
committed by
Android Git Automerger
commit
2dd63ccdb0
@ -48,13 +48,14 @@ class CommandDetails extends ValueObject implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CommandDetails(Parcel in) {
|
public CommandDetails(Parcel in) {
|
||||||
compRequired = true;
|
compRequired = in.readInt() != 0;
|
||||||
commandNumber = in.readInt();
|
commandNumber = in.readInt();
|
||||||
typeOfCommand = in.readInt();
|
typeOfCommand = in.readInt();
|
||||||
commandQualifier = in.readInt();
|
commandQualifier = in.readInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeToParcel(Parcel dest, int flags) {
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
dest.writeInt(compRequired ? 1 : 0);
|
||||||
dest.writeInt(commandNumber);
|
dest.writeInt(commandNumber);
|
||||||
dest.writeInt(typeOfCommand);
|
dest.writeInt(typeOfCommand);
|
||||||
dest.writeInt(commandQualifier);
|
dest.writeInt(commandQualifier);
|
||||||
|
Reference in New Issue
Block a user