diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintActivity.java b/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintActivity.java index 8cf9b0a..7c680f8 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintActivity.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/paint/PaintActivity.java @@ -6,17 +6,13 @@ import android.content.Intent; import android.os.Bundle; -import android.util.Log; -import android.view.MotionEvent; import android.view.View; import android.widget.Button; import android.widget.TextView; -import android.widget.Toast; import org.ntlab.acanthus_client.Acanthus; import org.ntlab.acanthus_client.R; import org.ntlab.acanthus_client.databinding.ActivityPaintBinding; -import org.ntlab.acanthus_client.entities.Position; import org.ntlab.acanthus_client.entities.Stroke; import java.util.Collection; @@ -87,7 +83,7 @@ //----------------------------------------------------------------- // 描画全体のクリア public void onClickClear(View view) { - paintCanvas.clearCanvas(); + paintCanvas.deleteStroke(); } //----------------------------------------------------------------- @@ -136,7 +132,7 @@ paintViewModel.getStroke().observe(this, new Observer>() { @Override public void onChanged(Collection strokes) { - paintCanvas.getCanvas(); + paintCanvas.updateCanvas(); } });