Fix AccountType enum parcel write

This commit is contained in:
Shinokuni 2019-06-15 22:22:38 +02:00
parent d93137b0a5
commit b0b8e4202a
1 changed files with 1 additions and 7 deletions

View File

@ -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