Compare commits

...

4 Commits

Author SHA1 Message Date
Jenni Vandervort a672c1ce33
Merge 30b463fe52 into a342efa982 2025-06-12 10:56:15 +08:00
王召德 a342efa982
Merge pull request #3619 from Juude/feature/avatar
fix english translation
2025-06-12 10:54:07 +08:00
若遗 d9cfc63302 fix english translation 2025-06-12 10:51:03 +08:00
shunlibest 30b463fe52 fix(ModelDownloadManager): Update download progress check method
Change the download progress check from `getDownloadSizeTotal` to `getDownloadSizeSaved` to more accurately reflect the saved download data size.
2025-06-11 16:58:53 +08:00
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -181,7 +181,7 @@ class ModelDownloadManager private constructor(private val context: Context) {
if (getDownloadedFile(modelId) != null) {
downloadInfo.downlodaState = DownloadInfo.DownloadSate.COMPLETED
downloadInfo.progress = 1.0
} else if (getDownloadSizeTotal(ApplicationProvider.get(), modelId) > 0) {
} else if (getDownloadSizeSaved(ApplicationProvider.get(), modelId) > 0) {
val totalSize = getDownloadSizeTotal(ApplicationProvider.get(), modelId)
val savedSize = getDownloadSizeSaved(ApplicationProvider.get(), modelId)
downloadInfo.totalSize = totalSize