diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-05-29 12:39:18 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-06-01 10:46:34 +0200 |
| commit | e4b5fb28b996383736fed065b94348645bde8d3d (patch) | |
| tree | cfd832eea58cb10dc31fef1293a00326ac717402 /main/src/cgeo/geocaching/CacheDetailActivity.java | |
| parent | 1e914068d75298b46a6ccf2f6474eb5368edcb65 (diff) | |
| download | cgeo-e4b5fb28b996383736fed065b94348645bde8d3d.zip cgeo-e4b5fb28b996383736fed065b94348645bde8d3d.tar.gz cgeo-e4b5fb28b996383736fed065b94348645bde8d3d.tar.bz2 | |
Add more parallelism in static maps downloads
Diffstat (limited to 'main/src/cgeo/geocaching/CacheDetailActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index 815d43b..7ada90a 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -46,6 +46,7 @@ import cgeo.geocaching.utils.CryptUtils; import cgeo.geocaching.utils.ImageUtils; import cgeo.geocaching.utils.Log; import cgeo.geocaching.utils.MatcherWrapper; +import cgeo.geocaching.utils.RxUtils; import cgeo.geocaching.utils.SimpleCancellableHandler; import cgeo.geocaching.utils.SimpleHandler; import cgeo.geocaching.utils.TextUtils; @@ -1341,7 +1342,7 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc if (image == null) { if (Settings.isStoreOfflineMaps() && cache.getCoords() != null) { - StaticMapsProvider.storeCachePreviewMap(cache); + RxUtils.waitForCompletion(StaticMapsProvider.storeCachePreviewMap(cache)); image = StaticMapsProvider.getPreviewMap(cache); } } |
