fix: honest indexing progress and preparing phase label
This commit is contained in:
1 parent
df96deb1fc
commit
95f4317eaf
4 files changed
+4
-2
No files matched your search
@@ -109,7 +109,7 @@ object DictionaryProgressModel {
|
||||
return Snapshot(
|
||||
progress = p,
|
||||
percent = (p * 100f).toInt().coerceIn(0, 100),
|
||||
titleRes = R.string.notification_indexing_title,
|
||||
titleRes = R.string.notification_preparing_indexing_title,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ class LocalDictionaryRepository(
|
||||
progressTracker = ProgressTracker(filesToScan)
|
||||
|
||||
existingDictionaries.forEach { dict ->
|
||||
progressTracker?.updateFileProgress(dict.name, 1.0f)
|
||||
progressTracker?.updateFileProgress(File(dict.path).name, 1.0f)
|
||||
}
|
||||
|
||||
mutableIndexingProgress.emit(
|
||||
|
||||
Reference in new issue
Block a user