From 37112e53e3fb5f0138e2b9f1f2bf91979058b2d5 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Fri, 20 Oct 2023 22:31:00 +0200 Subject: [PATCH] Fix GridButtonPresenter focus on old Android platforms --- .../jellyfin/androidtv/ui/presentation/GridButtonPresenter.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/presentation/GridButtonPresenter.kt b/app/src/main/java/org/jellyfin/androidtv/ui/presentation/GridButtonPresenter.kt index f690079e84..7374e41038 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/presentation/GridButtonPresenter.kt +++ b/app/src/main/java/org/jellyfin/androidtv/ui/presentation/GridButtonPresenter.kt @@ -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) }