Commit 5f01912d authored by Nicolas Pomepuy's avatar Nicolas Pomepuy

Fix equalizer focus issue

parent 787314f8
......@@ -15,7 +15,12 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:id="@+id/equalizer_container"
android:nextFocusDown="@+id/equalizer_button"
android:nextFocusForward="@+id/equalizer_button"
android:nextFocusLeft="@+id/equalizer_button"
android:nextFocusRight="@+id/equalizer_button">
<TextView
android:id="@+id/eq_title"
......@@ -39,6 +44,7 @@
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
app:switchPadding="8dp"
android:focusableInTouchMode="false"
android:text="@string/enable_equalizer"
app:layout_constraintBottom_toTopOf="@+id/equalizer_presets"
app:layout_constraintEnd_toEndOf="parent"
......@@ -56,7 +62,7 @@
app:layout_constraintTop_toBottomOf="@+id/eq_title"
>
<requestFocus/>
</androidx.appcompat.widget.AppCompatSpinner>
......
......@@ -57,7 +57,7 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
override fun needToManageOrientation() = false
override fun initialFocusedView() = binding.equalizerButton
override fun initialFocusedView(): View = binding.equalizerContainer
private lateinit var equalizer: MediaPlayer.Equalizer
private var customCount = 0
......@@ -128,7 +128,6 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
v.parent.requestDisallowInterceptTouchEvent(true)
true
}
binding.equalizerButton.clearFocus()
}
private fun fillViews() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment