-
Notifications
You must be signed in to change notification settings - Fork 206
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
Disable backing again during transition from bookmark screen. #578
Disable backing again during transition from bookmark screen. #578
Conversation
Snapshot diff report
|
@@ -116,7 +120,8 @@ fun BookmarkTopArea( | |||
contentDescription = null, | |||
modifier = Modifier | |||
.size(24.dp) | |||
.clickable { | |||
.clickable(enabled = enabledBackPress) { | |||
enabledBackPress = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using this approach?
https://stackoverflow.com/a/76386604/4339442
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I thought that approach was really better, so I'll change it that way!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great Thanks!
Issue
Overview (Required)
Clickable is now kept byvar enabledBackPress by remember { mutableStateOf(true) }
.enabledBackPress
created above is used to disable the button after the second click.Links
Screenshot
screen-20230817-000247.mp4
screen-20230817-010152.2.mp4