mirror of
https://github.com/ev-map/EVMap.git
synced 2026-04-20 14:18:20 -04:00
OSM: reduce flashing progress bar when moving map during download
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user