vfsfitvnm 3 years ago
parent
commit
ccfedf294b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt

+ 2 - 2
app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt

@@ -381,8 +381,8 @@ fun PlayerView(
                                             text = buildString {
                                             text = buildString {
                                                 append(Formatter.formatShortFileSize(context, cachedBytes))
                                                 append(Formatter.formatShortFileSize(context, cachedBytes))
 
 
-                                                song?.contentLength?.let { contentLenght ->
-                                                    append(" (${(cachedBytes.toFloat() / contentLenght * 100).roundToInt()}%)")
+                                                song?.contentLength?.let { contentLength ->
+                                                    append(" (${(cachedBytes.toFloat() / contentLength * 100).roundToInt()}%)")
                                                 }
                                                 }
                                             },
                                             },
                                             style = typography.xs.semiBold.color(BlackColorPalette.text)
                                             style = typography.xs.semiBold.color(BlackColorPalette.text)