mirror of https://github.com/readrops/Readrops.git
Fix AccountType enum parcel write
This commit is contained in:
parent
d93137b0a5
commit
b0b8e4202a
|
@ -182,15 +182,9 @@ public class Account implements Parcelable {
|
||||||
private @DrawableRes int iconRes;
|
private @DrawableRes int iconRes;
|
||||||
private @StringRes int name;
|
private @StringRes int name;
|
||||||
|
|
||||||
AccountType(Parcel in) {
|
|
||||||
iconRes = in.readInt();
|
|
||||||
name = in.readInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(Parcel dest, int flags) {
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
dest.writeInt(iconRes);
|
dest.writeInt(ordinal());
|
||||||
dest.writeInt(name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue