reformat code

This commit is contained in:
2026-07-24 14:36:39 +03:00
parent 6ef0132bcc
commit 64603dc368
46 changed files with 445 additions and 337 deletions
@@ -79,7 +79,9 @@ class AndroidPlayerController(context: Context) : PlayerController {
}
}
init { bindListenerIfNeeded(false) }
init {
bindListenerIfNeeded(false)
}
private fun bindListenerIfNeeded(allowFail: Boolean) {
try {
@@ -153,9 +153,11 @@ fun DefaultControls(
Key.DirectionLeft -> {
scope.launch { controller.seek(true) }
}
Key.DirectionRight -> {
scope.launch { controller.seek(false) }
}
Key.DirectionUp -> focus.play.requestFocus()
Key.DirectionDown -> focus.audioTrack.requestFocus()
else -> return@onPreviewKeyEvent false
@@ -307,6 +309,7 @@ private fun BoxScope.CenterControls(
)
}
}
else -> {
Row(
verticalAlignment = Alignment.CenterVertically,
@@ -4,5 +4,7 @@ import org.koin.core.annotation.Factory
@Factory
class DesktopExternalPlayer : ExternalPlayer {
override fun play(url: String) { throw NotImplementedError() }
override fun play(url: String) {
throw NotImplementedError()
}
}