diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-01-02 15:02:04 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-01-02 15:02:04 +0100 |
commit | 820028b4798600db8c6519519942b9b2a55ed86a (patch) | |
tree | 24fb9c0e8bd4e0c6f63b58c18c113c2eb023c77d /main/src | |
parent | 16f84074b3dbaf0e4c8371bf71a4d6a6849eac9b (diff) | |
download | cgeo-820028b4798600db8c6519519942b9b2a55ed86a.zip cgeo-820028b4798600db8c6519519942b9b2a55ed86a.tar.gz cgeo-820028b4798600db8c6519519942b9b2a55ed86a.tar.bz2 |
Cache might not be found in the database
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/StaticMapsActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/StaticMapsActivity.java b/main/src/cgeo/geocaching/StaticMapsActivity.java index 7d822ec..8d6148b 100644 --- a/main/src/cgeo/geocaching/StaticMapsActivity.java +++ b/main/src/cgeo/geocaching/StaticMapsActivity.java @@ -91,12 +91,14 @@ public class StaticMapsActivity extends AbstractActionBarActivity { public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState, R.layout.staticmaps_activity); - if (geocode == null) { + cache = DataStore.loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB); + + if (cache == null) { showToast("Sorry, c:geo forgot for what cache you want to load static maps."); finish(); return; } - cache = DataStore.loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB); + setCacheTitleBar(cache); waitDialog = ProgressDialog.show(this, null, res.getString(R.string.map_static_loading), true); |