From 79ae8aa24230aede02192fecc56ac0c6eb0aa7b7 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sun, 5 Apr 2015 11:25:15 +0200 Subject: fix #4844: wrong find count after logging needs maintenance --- main/res/values/changelog_release.xml | 34 ++-------------------- .../src/cgeo/geocaching/connector/gc/GCParser.java | 2 +- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/main/res/values/changelog_release.xml b/main/res/values/changelog_release.xml index 6cd3c0b..ead9986 100644 --- a/main/res/values/changelog_release.xml +++ b/main/res/values/changelog_release.xml @@ -2,38 +2,8 @@ \n - 2015.03.31:\n - · Fix: Adaption to website changes on gc.com (login failed message on main screen)\n - · Updated translations\n - \n - \n - 2015.03.28:\n - · Fix: Adaption to website changes on gc.com\n - · New: Distance and direction shown on map of a single cache\n - · New: Show own saved log first in logbook\n - · New: Show hint in compass and map action bar\n - · New: Sort events of same date by time (if recognized from cache description)\n - · New: Show number of trackables in cache list\n - · New: Weekday shown in event lists\n - · New: Show rudimentary details for geocaching.com.au swaggies\n - · New: Filter for caches with offline logs\n - · New: Allow export of waypoints without coords to Locus\n - · New: Confirmation on backup/restore\n - · New: Links in personal notes can be clicked\n - · New: Menu in cache details to open geo checker\n - · New: Map title shows more details\n - · Fix: Improve detection pattern for event start time\n - · Fix: Android Beam working with trackables again\n - · Fix: Disable Android Beam when not useful\n - · Fix: Don\'t allow logs in the future\n - · Fix: Allow shortcut creation for All caches list\n - · Fix: Some menus not available when invoking map from compass\n - · Fix: Do not limit to 10 logs for OC caches\n - · Fix: Recognize more hyperlinks of opencaching caches\n - · Fix: Remove empty space in some opencaching logs\n - · Fix: Allow up navigation when opening the app from a link\n - · Fix: Opening coord.info links from some mail clients was not working\n - · Removed: No longer support loading mapsforge 0.24 maps\n + next bugfix release\n + · Fix: wrong log count shown after logging something else than a found \n \n Known Limitations/Bugs:\n diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index d0a90bb..7fef8b4 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -1166,7 +1166,7 @@ public abstract class GCParser { gcLogin.getLoginStatus(page); // the log-successful-page contains still the old value if (gcLogin.getActualCachesFound() >= 0) { - gcLogin.setActualCachesFound(gcLogin.getActualCachesFound() + 1); + gcLogin.setActualCachesFound(gcLogin.getActualCachesFound() + (logType.isFoundLog() ? 1 : 0)); } final String logID = TextUtils.getMatch(page, GCConstants.PATTERN_LOG_IMAGE_UPLOAD, ""); -- cgit v1.1