We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7ea3a commit fa90481Copy full SHA for fa90481
app/src/main/java/com/phpbg/easysync/ui/MainActivity.kt
@@ -86,7 +86,6 @@ import com.phpbg.easysync.ui.components.StdText
86
import com.phpbg.easysync.ui.components.Title
87
import com.phpbg.easysync.ui.theme.MyApplicationTheme
88
import kotlinx.coroutines.launch
89
-import kotlin.math.max
90
import kotlin.math.round
91
92
@@ -297,7 +296,7 @@ private fun Main(
297
296
} else {
298
-1
299
}
300
- val maxJobs = max(localCount, syncedCount) + 1
+ val maxJobs = maxOf(localCount, syncedCount, jobCount)
301
val jobCountPercent =
302
if (jobCount == -1) -1 else round(100.0 * (maxJobs - jobCount) / maxJobs).toInt()
303
Row(
0 commit comments