From b0b8e4202a1ef02789ce205d3e9c459a9cb93bfd Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Sat, 15 Jun 2019 22:22:38 +0200 Subject: [PATCH] Fix AccountType enum parcel write --- .../java/com/readrops/app/database/entities/Account.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/java/com/readrops/app/database/entities/Account.java b/app/src/main/java/com/readrops/app/database/entities/Account.java index 71045584..787e05e6 100644 --- a/app/src/main/java/com/readrops/app/database/entities/Account.java +++ b/app/src/main/java/com/readrops/app/database/entities/Account.java @@ -182,15 +182,9 @@ public class Account implements Parcelable { private @DrawableRes int iconRes; private @StringRes int name; - AccountType(Parcel in) { - iconRes = in.readInt(); - name = in.readInt(); - } - @Override public void writeToParcel(Parcel dest, int flags) { - dest.writeInt(iconRes); - dest.writeInt(name); + dest.writeInt(ordinal()); } @Override