OSM: reduce flashing progress bar when moving map during download

This commit is contained in:
johan12345
2023-11-26 19:51:34 +01:00
parent 5a6c185a31
commit 4c5cc187cd

View File

@@ -238,6 +238,9 @@ class ChargeLocationsRepository(
}
} else {
return liveData {
if (fullDownloadJob != null) {
fullDownloadProgress.value?.let { emit(Resource.loading(null, it)) }
}
if (!savedRegionResult.await()) {
val job = fullDownloadJob ?: scope.launch {
fullDownload()