3
3
Fork 1
mirror of https://github.com/recloudstream/cloudstream.git synced 2024-08-15 01:53:11 +00:00

revert nullable secondsToReadable

This commit is contained in:
KingLucius 2024-07-23 10:41:14 +03:00
parent 7d56aad305
commit 914a69c36e
2 changed files with 2 additions and 5 deletions
app/src/main/java/com/lagradost/cloudstream3

View file

@ -73,10 +73,7 @@ abstract class AccountManager(private val defIndex: Int) : AuthAPI {
const val maxStale = 60 * 10
fun secondsToReadable(seconds: Int?, completedValue: String?): String? {
seconds ?: return null
fun secondsToReadable(seconds: Int, completedValue: String): String {
var secondsLong = seconds.toLong()
val days = TimeUnit.SECONDS
.toDays(secondsLong)

View file

@ -299,7 +299,7 @@ class EpisodeAdapter(
episodeRuntime.setText(
txt(
secondsToReadable(card.runTime?.times(60L)?.toInt(), null)
card.runTime?.times(60L)?.toInt()?.let { secondsToReadable(it, "") }
)
)