fix: probe source availability before showing download progress
Instant server failures (404/HTML error page) no longer flash a 0% progress bar; the check mirrors the downloader's previous-day fallback and tolerates transient network errors, which still go through the downloader's retry path.
This commit is contained in:
1 parent
43823e3bfa
commit
98ef99ab53
4 files changed
+118
-70
No files matched your search
@@ -62,7 +62,8 @@ class ReSearchApplication : Application() {
|
||||
|
||||
downloadManager = DownloadManager(
|
||||
dictionaryRepository = downloadDictionaryRepository,
|
||||
unknownErrorMessage = getString(R.string.unknown_error)
|
||||
unknownErrorMessage = getString(R.string.unknown_error),
|
||||
sourceUnavailableMessage = getString(R.string.download_file_not_found)
|
||||
)
|
||||
|
||||
dictionaryImportManager = DictionaryImportManager(
|
||||
|
||||
Reference in new issue
Block a user