As discussed in https://github.com/burhanrashid52/PhotoEditor/pull/545#discussion_r1499095552, when drawing a new shape, the redo history should be cleared. #545 invokes PhotoEditorViewState.clearRedoViews() only when adding sticker, emoji or text. However, for brush drawing, the function is not invoked, leading to an incorrect value being returned by PhotoEditorViewState.redoViewsCount.
As discussed in https://github.com/burhanrashid52/PhotoEditor/pull/545#discussion_r1499095552, when drawing a new shape, the redo history should be cleared. #545 invokes
PhotoEditorViewState.clearRedoViews()
only when adding sticker, emoji or text. However, for brush drawing, the function is not invoked, leading to an incorrect value being returned byPhotoEditorViewState.redoViewsCount
.