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

Commit d8ccd712 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

Merge "Parcel compRequired flag correctly."

parents 0f160c95 73f5618a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -48,13 +48,14 @@ class CommandDetails extends ValueObject implements Parcelable {
    }

    public CommandDetails(Parcel in) {
        compRequired = true;
        compRequired = in.readInt() != 0;
        commandNumber = in.readInt();
        typeOfCommand = in.readInt();
        commandQualifier = in.readInt();
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(compRequired ? 1 : 0);
        dest.writeInt(commandNumber);
        dest.writeInt(typeOfCommand);
        dest.writeInt(commandQualifier);