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:
OneWay committed 2026-09-05 10:03:54 +08:00
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(