Readded parcelable fix.

This commit is contained in:
Adrian Tiberius 2015-08-12 17:29:07 +02:00
parent befd04478e
commit b76a72f367
1 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import android.os.Parcelable;
import org.ethereum.core.Block; import org.ethereum.core.Block;
import org.ethereum.core.TransactionReceipt; import org.ethereum.core.TransactionReceipt;
import java.util.Arrays; import java.util.ArrayList;
import java.util.List; import java.util.List;
public class BlockEventData extends EventData { public class BlockEventData extends EventData {
@ -60,6 +60,10 @@ public class BlockEventData extends EventData {
super(in); super(in);
block = in.readParcelable(org.ethereum.android.interop.Block.class.getClassLoader()); block = in.readParcelable(org.ethereum.android.interop.Block.class.getClassLoader());
receipts = Arrays.asList((TransactionReceipt[])in.readParcelableArray(TransactionReceipt.class.getClassLoader())); receipts = new ArrayList<>();
Parcelable[] items = in.readParcelableArray(TransactionReceipt.class.getClassLoader());
for (Parcelable item: items) {
receipts.add((TransactionReceipt)item);
}
} }
} }