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(
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
<string name="notification_download_error_title">Ошибка загрузки</string>
|
||||
<string name="notification_download_error_text">Не удалось скачать словари</string>
|
||||
<string name="notification_indexing_title">Индексация словарей</string>
|
||||
<string name="notification_preparing_indexing_title">Подготовка словарей к индексации</string>
|
||||
<string name="archive_failed_open_source_file">Не удалось открыть исходный файл</string>
|
||||
<string name="archive_failed_create_output_file">Не удалось создать выходной файл</string>
|
||||
<string name="archive_failed_delete_file">Не удалось удалить файл: %1$s</string>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
<string name="notification_download_error_title">Download error</string>
|
||||
<string name="notification_download_error_text">Failed to download dictionaries</string>
|
||||
<string name="notification_indexing_title">Indexing dictionaries</string>
|
||||
<string name="notification_preparing_indexing_title">Preparing dictionaries for indexing</string>
|
||||
<string name="archive_failed_open_source_file">Failed to open source file</string>
|
||||
<string name="archive_failed_create_output_file">Failed to create output file</string>
|
||||
<string name="archive_failed_delete_file">Failed to delete file: %1$s</string>
|
||||
|
||||
Reference in new issue
Block a user