all: reformat
This commit is contained in:
@@ -101,7 +101,7 @@ constructor(
|
||||
library.artists.size,
|
||||
library.genres.size,
|
||||
library.songs.sumOf { it.durationMs },
|
||||
library.songs.sumOf { it.size })
|
||||
library.songs.sumOf { it.size },
|
||||
)
|
||||
L.d("Updated statistics: ${_statistics.value}")
|
||||
}
|
||||
@@ -371,7 +371,7 @@ constructor(
|
||||
val artists: Int,
|
||||
val genres: Int,
|
||||
val durationMs: Long,
|
||||
val totalSizeBytes: Long
|
||||
val totalSizeBytes: Long,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ package org.oxycblt.auxio.settings
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.text.format.Formatter
|
||||
import android.view.LayoutInflater
|
||||
import androidx.core.net.toUri
|
||||
import androidx.core.view.updatePadding
|
||||
@@ -38,7 +39,6 @@ import org.oxycblt.auxio.util.collectImmediately
|
||||
import org.oxycblt.auxio.util.openInBrowser
|
||||
import org.oxycblt.auxio.util.startIntent
|
||||
import org.oxycblt.auxio.util.systemBarInsetsCompat
|
||||
import android.text.format.Formatter
|
||||
|
||||
/**
|
||||
* A [ViewBindingFragment] that displays information about the app and the current music library.
|
||||
@@ -98,12 +98,14 @@ class AboutFragment : ViewBindingFragment<FragmentAboutBinding>() {
|
||||
binding.aboutTotalDuration.text =
|
||||
getString(
|
||||
R.string.fmt_lib_total_duration,
|
||||
(statistics?.durationMs ?: 0).formatDurationMs(false))
|
||||
(statistics?.durationMs ?: 0).formatDurationMs(false),
|
||||
)
|
||||
|
||||
binding.aboutTotalSize.text =
|
||||
getString(
|
||||
R.string.fmt_lib_total_size,
|
||||
(statistics?.totalSizeBytes ?: 0L).formatFileSize())
|
||||
Formatter.formatFileSize(context, statistics?.totalSizeBytes ?: 0L),
|
||||
)
|
||||
}
|
||||
|
||||
private fun Context.sendEmail(recipient: String) {
|
||||
|
||||
Reference in New Issue
Block a user