Fix focusing add repo on firestick

This commit is contained in:
Blatzar 2022-10-13 22:58:18 +02:00
parent 661f8c3c4e
commit 1228701f0e
2 changed files with 7 additions and 0 deletions

View file

@ -232,6 +232,11 @@ class ExtensionsFragment : Fragment() {
val isTv = isTrueTvSettings()
add_repo_button?.isGone = isTv
add_repo_button_imageview_holder?.isVisible = isTv
// Band-aid for Fire TV
plugin_storage_appbar?.isFocusableInTouchMode = isTv
add_repo_button_imageview?.isFocusableInTouchMode = isTv
add_repo_button?.setOnClickListener(addRepositoryClick)
add_repo_button_imageview?.setOnClickListener(addRepositoryClick)

View file

@ -56,6 +56,7 @@
</LinearLayout>
<LinearLayout
android:focusable="true"
android:id="@+id/plugin_storage_appbar"
android:nextFocusRight="@id/add_repo_button_imageview"
android:layout_width="match_parent"
@ -185,6 +186,7 @@
android:background="@drawable/outline_drawable"
android:nextFocusLeft="@id/plugin_storage_appbar"
android:layout_gravity="center"
android:focusable="true"
android:id="@+id/add_repo_button_imageview"
android:layout_width="40dp"