diff options
Diffstat (limited to 'app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt b/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt index 38031ad..7fff34a 100644 --- a/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt +++ b/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt @@ -49,6 +49,9 @@ class PhotoEditorActivity : AppCompatActivity() { private fun setButtonListeners(photoEditor: PhotoEditor) { var currentlyDrawing = false + undoButton.setOnClickListener { photoEditor.undo() } + redoButton.setOnClickListener { photoEditor.redo() } + photoDrawButton.setOnClickListener { currentlyDrawing = !currentlyDrawing photoEditor.setBrushDrawingMode(currentlyDrawing) |