aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorcampbeb <bpcampbell@gmail.com>2012-03-03 11:24:49 +0900
committercampbeb <bpcampbell@gmail.com>2012-03-03 11:24:49 +0900
commit548b2ec338204b214292fea8c6a35884de3a404a (patch)
tree5327ca0692259bd96d342e481d9e69046ca6d7b8 /main/src
parenta65651eabbfd99ef66cf570a60cc694e9defbc2e (diff)
downloadcgeo-548b2ec338204b214292fea8c6a35884de3a404a.zip
cgeo-548b2ec338204b214292fea8c6a35884de3a404a.tar.gz
cgeo-548b2ec338204b214292fea8c6a35884de3a404a.tar.bz2
Update progress when removing from history and refresh list when done
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index b6324f0..120bc59 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -454,12 +454,14 @@ public class cgeocaches extends AbstractListActivity {
if (msg.what > -1) {
cacheList.get(msg.what).setStatusChecked(false);
+ waitDialog.setProgress(detailProgress);
} else {
if (adapter != null) {
adapter.setSelectMode(false, true);
}
- // TODO: Reload cacheList
+ // reload history list
+ (new LoadByHistoryThread(loadCachesHandler)).start();
if (waitDialog != null) {
waitDialog.dismiss();
@@ -2172,6 +2174,7 @@ public class cgeocaches extends AbstractListActivity {
app.clearVisitDate(cache.getGeocode());
+ detailProgress++;
handler.sendEmptyMessage(cacheList.indexOf(cache));
yield();