mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-26 17:19:24 +00:00
make updater abstract
This commit is contained in:
8 files changed
+188
-66
No files matched your search
@@ -151,11 +151,16 @@ fun UpdateIndicator(
|
||||
is ReleaseViewModel.ReleaseUIState.InDownload -> {
|
||||
// is this the ideal design? idk
|
||||
enablePopup = true
|
||||
val progress = updateStatus.downloaded / updateStatus.outOf.toDouble()
|
||||
|
||||
CircularProgressIndicator(
|
||||
progress = { progress.toFloat() },
|
||||
)
|
||||
if (updateStatus.outOf != null) {
|
||||
CircularProgressIndicator(
|
||||
progress = {
|
||||
val progress = updateStatus.downloaded / updateStatus.outOf.toDouble()
|
||||
progress.toFloat()
|
||||
},
|
||||
)
|
||||
} else {
|
||||
CircularProgressIndicator()
|
||||
}
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user