mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Few dev related fixes (#291)
This commit is contained in:
parent
72970b9a4b
commit
c600d2eb28
4 changed files with 13 additions and 8 deletions
|
|
@ -192,7 +192,8 @@ sealed interface AppPreference<T> {
|
|||
setter = { prefs, value ->
|
||||
prefs.updateHomePagePreferences { combineContinueNext = value }
|
||||
},
|
||||
summary = R.string.combine_continue_next_summary,
|
||||
summaryOn = R.string.enabled,
|
||||
summaryOff = R.string.disabled,
|
||||
)
|
||||
|
||||
val RewatchNextUp =
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import androidx.compose.ui.unit.dp
|
|||
import androidx.tv.material3.MaterialTheme
|
||||
import androidx.tv.material3.ProvideTextStyle
|
||||
import androidx.tv.material3.Text
|
||||
import com.github.damontecres.wholphin.preferences.PlayerBackend
|
||||
import com.github.damontecres.wholphin.ui.byteRateSuffixes
|
||||
import com.github.damontecres.wholphin.ui.formatBytes
|
||||
import com.github.damontecres.wholphin.ui.letNotEmpty
|
||||
|
|
@ -30,12 +31,14 @@ fun PlaybackDebugOverlay(
|
|||
) {
|
||||
ProvideTextStyle(MaterialTheme.typography.bodySmall.copy(color = MaterialTheme.colorScheme.onSurface)) {
|
||||
SimpleTable(
|
||||
listOf(
|
||||
"Backend:" to currentPlayback?.backend?.toString(),
|
||||
"Play method:" to currentPlayback?.playMethod?.serialName,
|
||||
"Video Decoder:" to currentPlayback?.videoDecoder,
|
||||
"Audio Decoder:" to currentPlayback?.audioDecoder,
|
||||
),
|
||||
buildList {
|
||||
add("Backend:" to currentPlayback?.backend?.toString())
|
||||
add("Play method:" to currentPlayback?.playMethod?.serialName)
|
||||
if (currentPlayback?.backend == PlayerBackend.EXO_PLAYER) {
|
||||
add("Video Decoder:" to currentPlayback.videoDecoder)
|
||||
add("Audio Decoder:" to currentPlayback.audioDecoder)
|
||||
}
|
||||
},
|
||||
)
|
||||
currentPlayback?.transcodeInfo?.let {
|
||||
TranscodeInfo(it, Modifier)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue