nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

Encapsulate shouldDisplayUndoBookmark with private setter

Open Namyunsuk opened this issue 4 months ago • 0 comments

What I have done and why

This PR encapsulates the shouldDisplayUndoBookmark state in BookmarksViewModel by adding a private set.

Previously, shouldDisplayUndoBookmark was publicly mutable, which allowed external classes or composables to modify its value directly. By making the setter private, only the ViewModel can update this state. This change improves encapsulation and prevents unintended modifications from outside.

Fix #1899

Namyunsuk avatar Jul 14 '25 05:07 Namyunsuk