Skip to content

Commit

Permalink
Fix preferences crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Mar 22, 2022
1 parent 41d7aeb commit 5fdffe5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.Locale
class ButtonRemapPreference @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0,
defStyleAttr: Int = androidx.preference.R.attr.dialogPreferenceStyle,
defStyleRes: Int = 0,
) : DialogPreference(context, attrs, defStyleAttr, defStyleRes) {
override fun getDialogLayoutResource() = R.layout.preference_button_remap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.jellyfin.androidtv.R
class DurationSeekBarPreference @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0,
defStyleAttr: Int = androidx.preference.R.attr.seekBarPreferenceStyle,
defStyleRes: Int = 0,
) : SeekBarPreference(context, attrs, defStyleAttr, defStyleRes) {
var valueFormatter = ValueFormatter()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.jellyfin.androidtv.ui.preference.custom.RichListDialogFragment.RichLi
class RichListPreference<K> @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0,
defStyleAttr: Int = androidx.preference.R.attr.dialogPreferenceStyle,
defStyleRes: Int = 0,
) : DialogPreference(context, attrs, defStyleAttr, defStyleRes) {
private var items: List<RichListItem<K>> = emptyList()
Expand Down

0 comments on commit 5fdffe5

Please sign in to comment.