reformat code
This commit is contained in:
+3
-1
@@ -79,7 +79,9 @@ class AndroidPlayerController(context: Context) : PlayerController {
|
||||
}
|
||||
}
|
||||
|
||||
init { bindListenerIfNeeded(false) }
|
||||
init {
|
||||
bindListenerIfNeeded(false)
|
||||
}
|
||||
|
||||
private fun bindListenerIfNeeded(allowFail: Boolean) {
|
||||
try {
|
||||
|
||||
+3
@@ -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,
|
||||
|
||||
+3
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user