Skip to content
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

Propagate BackHandler#enabled changing in Redwood #1673

Conversation

veyndan
Copy link
Contributor

@veyndan veyndan commented Nov 8, 2023

This only fixes the bug for Redwood. I'll make a follow up PR(s) to fix it for Treehouse.

Refs #1672

@veyndan veyndan requested a review from JakeWharton November 8, 2023 13:56
Comment on lines 19 to +25
public var isEnabled: Boolean = enabled
set(value) {
field = value
enabledChangedCallback?.invoke()
}

public var enabledChangedCallback: (() -> Unit)? = null
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@veyndan veyndan force-pushed the veyndan/2023-11-08/backhandler-propagate-enabled-android-views branch 2 times, most recently from 40a8850 to 6f77532 Compare November 8, 2023 17:56
@veyndan veyndan changed the title Propagate BackHandler#enabled changing in Redwood for Android Views Propagate BackHandler#enabled changing in Redwood Nov 8, 2023
gradle/libs.versions.toml Outdated Show resolved Hide resolved
@veyndan veyndan force-pushed the veyndan/2023-11-08/backhandler-propagate-enabled-android-views branch from 6f77532 to 7dc587f Compare November 9, 2023 09:27
@veyndan veyndan enabled auto-merge (squash) November 9, 2023 09:33
@veyndan veyndan merged commit 7688b4f into trunk Nov 9, 2023
8 checks passed
@veyndan veyndan deleted the veyndan/2023-11-08/backhandler-propagate-enabled-android-views branch November 9, 2023 11:34
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.

2 participants