diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintCanvas.java b/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintCanvas.java index b57f579..8ffae7c 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintCanvas.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintCanvas.java @@ -171,14 +171,16 @@ // 描画クリア public void clearCanvas() { paintViewModel.deleteStrokesRequest(); - for (int i = 0; i < paths.toArray().length; i++) { - paths.get(i).reset(); - //paints.clear(); - } + paths.clear(); path.reset(); + paints.clear(); + clonepaths.clear(); + clonepaints.clear(); + clonepath.reset(); + invalidate(); //clonepath.reset(); //latestpath.reset(); - invalidate(); + //invalidate(); } //-----------------------------------------------------------------