aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-04-07 16:10:38 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-04-07 16:10:38 +0200
commitd29b9ff364375cf5232fb74ad15df56d6c53c71b (patch)
tree33b113c4b4970893a7b8243eb6a0d3ef3d93ec10
parent2d776212bc293cb67ba96ad99e607824f8796c68 (diff)
parent2810598238dbcbb25037998b8afae23b57fdf1dc (diff)
downloadcgeo-d29b9ff364375cf5232fb74ad15df56d6c53c71b.zip
cgeo-d29b9ff364375cf5232fb74ad15df56d6c53c71b.tar.gz
cgeo-d29b9ff364375cf5232fb74ad15df56d6c53c71b.tar.bz2
Merge branch 'release' into upstream
-rw-r--r--main/src/cgeo/geocaching/CacheListActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/CacheListActivity.java b/main/src/cgeo/geocaching/CacheListActivity.java
index f892bcb..6b639e4 100644
--- a/main/src/cgeo/geocaching/CacheListActivity.java
+++ b/main/src/cgeo/geocaching/CacheListActivity.java
@@ -308,7 +308,7 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA
/**
* TODO Possibly parts should be a Thread not a Handler
*/
- private final CancellableHandler downloadFromWebHandler = new CancellableHandler() {
+ private class DownloadFromWebHandler extends CancellableHandler {
@Override
public void handleRegularMessage(Message msg) {
updateAdapter();
@@ -343,7 +343,8 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA
break;
}
}
- };
+ }
+
private final CancellableHandler clearOfflineLogsHandler = new CancellableHandler() {
@Override
@@ -1079,6 +1080,7 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA
detailProgress = 0;
showProgress(false);
+ final DownloadFromWebHandler downloadFromWebHandler = new DownloadFromWebHandler();
progress.show(this, null, res.getString(R.string.web_import_waiting), true, downloadFromWebHandler.cancelMessage());
final LoadFromWebThread threadWeb = new LoadFromWebThread(downloadFromWebHandler, listId);