fix: Replace poor syntax that created warnings during build

This commit is contained in:
le-firehawk 2025-09-18 18:51:06 +09:30
parent 78e7032903
commit 44679855cd
4 changed files with 28 additions and 18 deletions

View file

@ -123,9 +123,9 @@ class MediaService : MediaLibraryService() {
val connectionResult = super.onConnect(session, controller)
val availableSessionCommands = connectionResult.availableSessionCommands.buildUpon()
shuffleCommands.forEach { commandButton ->
shuffleCommands.forEach {
// TODO: Aggiungere i comandi personalizzati
// commandButton.sessionCommand?.let { availableSessionCommands.add(it) }
// it.sessionCommand?.let { availableSessionCommands.add(it) }
}
return MediaSession.ConnectionResult.accept(
@ -430,7 +430,7 @@ class MediaService : MediaLibraryService() {
.build()
}
private fun ignoreFuture(customLayout: ListenableFuture<SessionResult>) {
private fun ignoreFuture(@Suppress("UNUSED_PARAMETER") customLayout: ListenableFuture<SessionResult>) {
/* Do nothing. */
}