回答編集履歴
1
描画情報保存の際に新規インスタンスを生成するようにする
answer
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
public final Paint paint;
|
7
7
|
|
8
8
|
public DrawInfo(Path path, Paint paint) {
|
9
|
-
this.path = path;
|
9
|
+
this.path = new Path(path);
|
10
|
-
this.paint = paint;
|
10
|
+
this.paint = new Paint(paint);
|
11
11
|
}
|
12
12
|
}
|
13
13
|
|