Skip to content

Commit

Permalink
Fix clearing redo stack after brush drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
wasky authored and burhanrashid52 committed May 11, 2024
1 parent 37cf0ed commit d780483
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class BrushDrawingStateListener internal constructor(
}

override fun onStopDrawing() {
if (mViewState.redoViewsCount > 0) {
mViewState.clearRedoViews()
}
mOnPhotoEditorListener?.onStopViewChangeListener(ViewType.BRUSH_DRAWING)
}
}

0 comments on commit d780483

Please sign in to comment.