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 8027d98..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 @@ -170,15 +170,17 @@ //----------------------------------------------------------------- // 描画クリア public void clearCanvas() { - //paintViewModel.deleteStrokesRequest(); - for (int i = 0; i < paths.toArray().length; i++) { - paths.get(i).reset(); - //paints.clear(); - } + paintViewModel.deleteStrokesRequest(); + paths.clear(); path.reset(); + paints.clear(); + clonepaths.clear(); + clonepaints.clear(); + clonepath.reset(); + invalidate(); //clonepath.reset(); //latestpath.reset(); - invalidate(); + //invalidate(); } //-----------------------------------------------------------------