am 8977c1da: Merge "CEC: Fix a bug in HdmiPortInfo.createFromParcel()." into lmp-mr1-dev
* commit '8977c1dab572cb61ebff1f844a549f7fb2e4e590': CEC: Fix a bug in HdmiPortInfo.createFromParcel().
This commit is contained in:
@@ -136,7 +136,7 @@ public final class HdmiPortInfo implements Parcelable {
|
||||
boolean cec = (source.readInt() == 1);
|
||||
boolean arc = (source.readInt() == 1);
|
||||
boolean mhl = (source.readInt() == 1);
|
||||
return new HdmiPortInfo(id, type, address, cec, arc, mhl);
|
||||
return new HdmiPortInfo(id, type, address, cec, mhl, arc);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -172,4 +172,15 @@ public final class HdmiPortInfo implements Parcelable {
|
||||
s.append("mhl: ").append(mMhlSupported);
|
||||
return s.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof HdmiPortInfo)) {
|
||||
return false;
|
||||
}
|
||||
final HdmiPortInfo other = (HdmiPortInfo) o;
|
||||
return mId == other.mId && mType == other.mType && mAddress == other.mAddress
|
||||
&& mCecSupported == other.mCecSupported && mArcSupported == other.mArcSupported
|
||||
&& mMhlSupported == other.mMhlSupported;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user