Merge pull request #910 from ls1110924/master

fix: 修复Entity使用Parcel序列化时丢失rowId的问题
pull/918/head
lyy 3 years ago committed by GitHub
commit 48af5509f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      PublicComponent/src/main/java/com/arialyy/aria/core/common/AbsEntity.java

@ -234,6 +234,7 @@ public abstract class AbsEntity extends DbEntity implements IEntity, Parcelable,
}
@Override public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(this.rowID);
dest.writeLong(this.speed);
dest.writeString(this.convertSpeed);
dest.writeInt(this.failNum);
@ -249,6 +250,7 @@ public abstract class AbsEntity extends DbEntity implements IEntity, Parcelable,
}
protected AbsEntity(Parcel in) {
this.rowID = in.readLong();
this.speed = in.readLong();
this.convertSpeed = in.readString();
this.failNum = in.readInt();

Loading…
Cancel
Save