这是indexloc提供的服务,不要输入任何密码
Skip to content

Encapsulate shouldDisplayUndoBookmark with private setter #1900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Namyunsuk
Copy link

@Namyunsuk Namyunsuk commented Jul 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR]: Encapsulate 'shouldDisplayUndoBookmark' state in BookmarksViewModel
1 participant