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

Commit b3f522f3 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "MTP: Read property code before calling isDeviceProperty in MtpProperty::read()"

parents c7f2f0ab bf1dbd19
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -122,9 +122,8 @@ MtpProperty::~MtpProperty() {
}

void MtpProperty::read(MtpDataPacket& packet) {
    bool deviceProp = isDeviceProperty();

    mCode = packet.getUInt16();
    bool deviceProp = isDeviceProperty();
    mType = packet.getUInt16();
    mWriteable = (packet.getUInt8() == 1);
    switch (mType) {