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
-1
View File
@@ -1,4 +1,3 @@
import com.android.build.api.dsl.LibraryExtension
plugins {
@@ -15,6 +15,10 @@ fun BackButton(doBack: () -> Unit) {
IconButton(
onClick = { doBack() },
shape = CircleShape,
colors = IconButtonDefaults.iconButtonVibrantColors(containerColor = MaterialTheme.colorScheme.primaryContainer.copy(0.1f))
colors = IconButtonDefaults.iconButtonVibrantColors(
containerColor = MaterialTheme.colorScheme.primaryContainer.copy(
0.1f
)
)
) { Icon(painterResource(Res.drawable.back), contentDescription = null) }
}
@@ -17,7 +17,8 @@ import androidx.compose.ui.unit.dp
private const val ROUNDED_MAX = 24
private const val ROUNDED_MIN = 6
@DslMarker private annotation class ExpressiveListDsl
@DslMarker
private annotation class ExpressiveListDsl
internal data class ExpressiveNode(
val key: Any?,
@@ -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()
}
}