Skip to content

Commit

Permalink
Set defaultFocusHighlightEnabled to false in TextUnderButton
Browse files Browse the repository at this point in the history
(cherry picked from commit 8713cd5)
  • Loading branch information
nielsvanvelzen committed Sep 6, 2022
1 parent 0fc8daf commit c1b103e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jellyfin.androidtv.ui

import android.content.Context
import android.os.Build
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
Expand All @@ -22,6 +23,7 @@ class TextUnderButton @JvmOverloads constructor(
isFocusable = true
isFocusableInTouchMode = true
descendantFocusability = FOCUS_BLOCK_DESCENDANTS
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) defaultFocusHighlightEnabled = false
}

fun setLabel(text: String?) {
Expand Down

0 comments on commit c1b103e

Please sign in to comment.