From f7a1488c931a6f22f86e49d6a7e639e5ab780559 Mon Sep 17 00:00:00 2001 From: jsh Date: Thu, 21 May 2020 19:24:42 +0900 Subject: [PATCH] IOException error fix --- .../com/byox/drawview/dictionaries/DrawMove.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drawview/src/main/java/com/byox/drawview/dictionaries/DrawMove.java b/drawview/src/main/java/com/byox/drawview/dictionaries/DrawMove.java index 2f072c3..e40330d 100644 --- a/drawview/src/main/java/com/byox/drawview/dictionaries/DrawMove.java +++ b/drawview/src/main/java/com/byox/drawview/dictionaries/DrawMove.java @@ -1,9 +1,12 @@ package com.byox.drawview.dictionaries; +import android.annotation.SuppressLint; import android.graphics.Bitmap; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Path; +import android.os.Parcel; +import android.os.Parcelable; import com.byox.drawview.enums.BackgroundScale; import com.byox.drawview.enums.BackgroundType; @@ -25,7 +28,8 @@ * @author Ing. Oscar G. Medina Cruz */ -public class DrawMove implements Serializable { +@SuppressLint("ParcelCreator") +public class DrawMove implements Serializable , Parcelable { private static DrawMove mSingleton; @@ -166,4 +170,13 @@ public DrawMove setBackgroundImage(byte[] backgroundImage, Matrix backgroundMatr return mSingleton; } else throw new RuntimeException("Create new instance of DrawMove first!"); } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel parcel, int i) { + } }