mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
feat: refactor SeriesScreen and ViewModel for improved season episode loading and download handling
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package hu.bbara.purefin.ui.common.media
|
||||
|
||||
fun mediaPlayButtonText(progressPercent: Double?, watched: Boolean): String {
|
||||
return if ((progressPercent ?: 0.0) > 0.0 && !watched) "Resume" else "Play"
|
||||
fun mediaPlayButtonText(progressPercent: Double?, watched: Boolean?): String {
|
||||
return if ((progressPercent ?: 0.0) > 0.0 && watched?.not() == true) "Resume" else "Play"
|
||||
}
|
||||
|
||||
fun mediaPlaybackProgress(progressPercent: Double?): Float {
|
||||
|
||||
Reference in New Issue
Block a user