mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Show playback debug info
This commit is contained in:
parent
9cc2fc40d3
commit
64e881f51c
9 changed files with 177 additions and 28 deletions
|
|
@ -187,18 +187,17 @@ sealed interface AppPreference<T> {
|
|||
summaryOff = R.string.disabled,
|
||||
)
|
||||
|
||||
// val PlaybackDebugInfo =
|
||||
// AppSwitchPreference(
|
||||
// title = R.string.playback_debug_info,
|
||||
// prefKey = R.string.pref_key_show_playback_debug_info,
|
||||
// defaultValue = false,
|
||||
// getter = { it.playbackPreferences.showDebugInfo },
|
||||
// setter = { prefs, value ->
|
||||
// prefs.updatePlaybackPreferences { showDebugInfo = value }
|
||||
// },
|
||||
// summaryOn = R.string.show,
|
||||
// summaryOff = R.string.hide,
|
||||
// )
|
||||
val PlaybackDebugInfo =
|
||||
AppSwitchPreference(
|
||||
title = R.string.playback_debug_info,
|
||||
defaultValue = false,
|
||||
getter = { it.playbackPreferences.showDebugInfo },
|
||||
setter = { prefs, value ->
|
||||
prefs.updatePlaybackPreferences { showDebugInfo = value }
|
||||
},
|
||||
summaryOn = R.string.show,
|
||||
summaryOff = R.string.hide,
|
||||
)
|
||||
|
||||
// val AutoCheckForUpdates =
|
||||
// AppSwitchPreference(
|
||||
|
|
@ -246,6 +245,7 @@ val basicPreferences =
|
|||
AppPreference.RewatchNextUp,
|
||||
AppPreference.PlayThemeMusic,
|
||||
AppPreference.OssLicenseInfo,
|
||||
AppPreference.PlaybackDebugInfo,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ class AppPreferencesSerializer
|
|||
AppPreference.SkipBack.defaultValue.seconds.inWholeMilliseconds
|
||||
controllerTimeoutMs = AppPreference.ControllerTimeout.defaultValue
|
||||
seekBarSteps = AppPreference.SeekBarSteps.defaultValue.toInt()
|
||||
showDebugInfo = AppPreference.PlaybackDebugInfo.defaultValue
|
||||
}.build()
|
||||
homePagePreferences =
|
||||
HomePagePreferences
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue