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 ef21a4c..9a69776 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 @@ -1,14 +1,12 @@ package org.ntlab.acanthus_client.views.paint; +import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProvider; -import android.content.Intent; +import android.os.Build; import android.os.Bundle; -import android.view.View; -import android.widget.Button; -import android.widget.TextView; import org.ntlab.acanthus_client.Acanthus; import org.ntlab.acanthus_client.R; @@ -34,10 +32,12 @@ //----------------------------------------------------------------- //----------------------------------------------------------------- + @RequiresApi(api = Build.VERSION_CODES.O) @Override public void onDestroy() { super.onDestroy(); pageViewModel.resetPageNo(); + paintCanvas.canvasScreenShot(); } //-----------------------------------------------------------------