Skip to content

Commit

Permalink
Set defaultFocusHighlightEnabled to false in DefaultCardView
Browse files Browse the repository at this point in the history
Fixes an incompatibility with Android 13
  • Loading branch information
nielsvanvelzen committed Sep 4, 2022
1 parent c8f757f commit e56eee4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.jellyfin.androidtv.ui.card
import android.content.Context
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.AttributeSet
import android.view.KeyEvent
import android.view.LayoutInflater
Expand All @@ -25,6 +26,7 @@ class DefaultCardView @JvmOverloads constructor(
init {
isFocusable = true
descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) defaultFocusHighlightEnabled = false
}

val binding = ViewCardDefaultBinding.inflate(LayoutInflater.from(context), this, true)
Expand Down

0 comments on commit e56eee4

Please sign in to comment.