aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-04-06 17:19:30 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-04-06 17:23:12 +0200
commit7211a93bef651f37f58cfa0049d4762272195d95 (patch)
tree6a634f6566a3101254a444ad6f7155fddd1636a9
parent62cd11e0d4a3c557eda4c010b7bc3d66c70a00a8 (diff)
downloadcgeo-7211a93bef651f37f58cfa0049d4762272195d95.zip
cgeo-7211a93bef651f37f58cfa0049d4762272195d95.tar.gz
cgeo-7211a93bef651f37f58cfa0049d4762272195d95.tar.bz2
refactoring: narrow scope of variable
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 1006628..a8e798f 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -1725,11 +1725,11 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
@Override
public Loader<SearchResult> onCreateLoader(int type, Bundle extras) {
- AbstractSearchLoader loader = null;
if (type >= CacheListLoaderType.values().length) {
throw new IllegalArgumentException("invalid loader type " + type);
}
CacheListLoaderType enumType = CacheListLoaderType.values()[type];
+ AbstractSearchLoader loader = null;
switch (enumType) {
case OFFLINE:
listId = Settings.getLastList();