Tweak code

This commit is contained in:
vfsfitvnm
2022-07-23 16:57:38 +02:00
parent 841a546c28
commit e912bfed1c
74 changed files with 1162 additions and 398 deletions

View File

@@ -1,7 +1,7 @@
package it.vfsfitvnm.vimusic.models
import androidx.room.*
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Song(
@@ -20,7 +20,7 @@ data class Song(
val hours = seconds / 3600
return when {
return when {
hours == 0L -> "${seconds / 60}m"
hours < 24L -> "${hours}h"
else -> "${hours / 24}d"