From 4c5ef68f45a2b35537b89f857c1aa9fcb117ae83 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Mon, 6 Jan 2014 15:06:01 +0100 Subject: fix #3521: GPS reference count mismatch There is no need to explicitely turn on the GPS when cancelling a list refresh operation as this is done afterwards even when the information has been cancelled. The reference counter was not correct. --- main/src/cgeo/geocaching/CacheListActivity.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/CacheListActivity.java b/main/src/cgeo/geocaching/CacheListActivity.java index 223493b..85972be 100644 --- a/main/src/cgeo/geocaching/CacheListActivity.java +++ b/main/src/cgeo/geocaching/CacheListActivity.java @@ -93,7 +93,6 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA private static final int MAX_LIST_ITEMS = 1000; private static final int MSG_DONE = -1; - private static final int MSG_RESTART_GEO_AND_DIR = -2; private static final int MSG_CANCEL = -99; private static final int REQUEST_CODE_IMPORT_GPX = 1; @@ -292,8 +291,6 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA if (threadDetails != null) { threadDetails.kill(); } - } else if (msg.what == MSG_RESTART_GEO_AND_DIR) { - startGeoAndDir(); } else { if (search != null) { final Set cacheListTmp = search.getCachesFromSearchResult(LoadFlags.LOAD_CACHE_OR_DB); @@ -1158,7 +1155,6 @@ public class CacheListActivity extends AbstractListActivity implements FilteredA } } - handler.sendEmptyMessage(MSG_RESTART_GEO_AND_DIR); handler.sendEmptyMessage(MSG_DONE); } -- cgit v1.1