diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-06 15:06:01 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-06 15:07:02 +0100 |
| commit | 4c5ef68f45a2b35537b89f857c1aa9fcb117ae83 (patch) | |
| tree | 07887644a61d5b6e27b369f8a39b237ae581f4b6 | |
| parent | 3f6a394c10583fc4280474f170527cd89d0649c7 (diff) | |
| download | cgeo-4c5ef68f45a2b35537b89f857c1aa9fcb117ae83.zip cgeo-4c5ef68f45a2b35537b89f857c1aa9fcb117ae83.tar.gz cgeo-4c5ef68f45a2b35537b89f857c1aa9fcb117ae83.tar.bz2 | |
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.
| -rw-r--r-- | main/src/cgeo/geocaching/CacheListActivity.java | 4 |
1 files changed, 0 insertions, 4 deletions
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<Geocache> 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); } |
