aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeocaches.java
diff options
context:
space:
mode:
authorSammysHP <sven@sammyshp.de>2013-04-20 13:48:52 -0700
committerSammysHP <sven@sammyshp.de>2013-04-20 13:48:52 -0700
commitd1f644bab3c674ea6a65a9560b6831cfb0cde499 (patch)
tree868bd3bcda0e463001ac53847432a6ab5955df64 /main/src/cgeo/geocaching/cgeocaches.java
parentb71d4bd03f8da774881d119c3ab55e16dc27f4d1 (diff)
parent705dc21ac799f786e6c7b76f9588ff22aa25a05f (diff)
downloadcgeo-d1f644bab3c674ea6a65a9560b6831cfb0cde499.zip
cgeo-d1f644bab3c674ea6a65a9560b6831cfb0cde499.tar.gz
cgeo-d1f644bab3c674ea6a65a9560b6831cfb0cde499.tar.bz2
Merge pull request #2668 from donEgro/release
Handle no network when refreshing caches, fixes #708
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 30a18c5..e5176d5 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -1068,6 +1068,11 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
return;
}
+ if (!Network.isNetworkConnected(getApplicationContext())) {
+ showToast(getString(R.string.err_server));
+ return;
+ }
+
if (Settings.getChooseList() && type != CacheListType.OFFLINE) {
// let user select list to store cache in
new StoredList.UserInterface(this).promptForListSelection(R.string.list_title,