Skip to content

Commit

Permalink
Fix GridButtonPresenter focus on old Android platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Oct 20, 2023
1 parent 9478e7e commit 37112e5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class GridButtonPresenter @JvmOverloads constructor(
) : Presenter() {
private class ComposeViewWrapper(composeView: ComposeView) : FrameLayout(composeView.context) {
init {
isFocusable = true
isFocusableInTouchMode = true
descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS
addView(composeView)
}

Expand Down

0 comments on commit 37112e5

Please sign in to comment.