aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/ui')
-rw-r--r--main/src/cgeo/geocaching/ui/CacheListAdapter.java10
-rw-r--r--main/src/cgeo/geocaching/ui/CompassView.java3
-rw-r--r--main/src/cgeo/geocaching/ui/GPXListAdapter.java3
-rw-r--r--main/src/cgeo/geocaching/ui/MapfileListAdapter.java3
4 files changed, 6 insertions, 13 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheListAdapter.java b/main/src/cgeo/geocaching/ui/CacheListAdapter.java
index c6205f6..ee7a8b1 100644
--- a/main/src/cgeo/geocaching/ui/CacheListAdapter.java
+++ b/main/src/cgeo/geocaching/ui/CacheListAdapter.java
@@ -20,7 +20,6 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import android.app.Activity;
-import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
@@ -364,7 +363,7 @@ public class CacheListAdapter extends ArrayAdapter<cgCache> {
}
if (position > getCount()) {
- Log.w(Settings.tag, "CacheListAdapter.getView: Attempt to access missing item #" + position);
+ Log.w("CacheListAdapter.getView: Attempt to access missing item #" + position);
return null;
}
@@ -688,10 +687,7 @@ public class CacheListAdapter extends ArrayAdapter<cgCache> {
}
// load cache details
- Intent cachesIntent = new Intent(getContext(), CacheDetailActivity.class);
- cachesIntent.putExtra("geocode", geocode);
- cachesIntent.putExtra("name", name);
- getContext().startActivity(cachesIntent);
+ CacheDetailActivity.startActivity(getContext(), geocode, name);
}
// long tap on item
@@ -770,7 +766,7 @@ public class CacheListAdapter extends ArrayAdapter<cgCache> {
return true;
}
} catch (Exception e) {
- Log.w(Settings.tag, "CacheListAdapter.detectGesture.onFling: " + e.toString());
+ Log.w("CacheListAdapter.detectGesture.onFling: " + e.toString());
}
return false;
diff --git a/main/src/cgeo/geocaching/ui/CompassView.java b/main/src/cgeo/geocaching/ui/CompassView.java
index 7f6f792..d9e0bfe 100644
--- a/main/src/cgeo/geocaching/ui/CompassView.java
+++ b/main/src/cgeo/geocaching/ui/CompassView.java
@@ -1,7 +1,6 @@
package cgeo.geocaching.ui;
import cgeo.geocaching.R;
-import cgeo.geocaching.Settings;
import cgeo.geocaching.utils.Log;
import android.content.Context;
@@ -58,7 +57,7 @@ public class CompassView extends View {
try {
invalidate();
} catch (Exception e) {
- Log.e(Settings.tag, "CompassView.changeHandler: " + e.toString());
+ Log.e("CompassView.changeHandler: " + e.toString());
}
}
};
diff --git a/main/src/cgeo/geocaching/ui/GPXListAdapter.java b/main/src/cgeo/geocaching/ui/GPXListAdapter.java
index 5a58840..aa2234a 100644
--- a/main/src/cgeo/geocaching/ui/GPXListAdapter.java
+++ b/main/src/cgeo/geocaching/ui/GPXListAdapter.java
@@ -1,7 +1,6 @@
package cgeo.geocaching.ui;
import cgeo.geocaching.R;
-import cgeo.geocaching.Settings;
import cgeo.geocaching.cgeogpxes;
import cgeo.geocaching.files.GPXImporter;
import cgeo.geocaching.utils.Log;
@@ -34,7 +33,7 @@ public class GPXListAdapter extends ArrayAdapter<File> {
}
if (position > getCount()) {
- Log.w(Settings.tag, "cgGPXListAdapter.getView: Attempt to access missing item #" + position);
+ Log.w("cgGPXListAdapter.getView: Attempt to access missing item #" + position);
return null;
}
diff --git a/main/src/cgeo/geocaching/ui/MapfileListAdapter.java b/main/src/cgeo/geocaching/ui/MapfileListAdapter.java
index c4720d5..e7380f0 100644
--- a/main/src/cgeo/geocaching/ui/MapfileListAdapter.java
+++ b/main/src/cgeo/geocaching/ui/MapfileListAdapter.java
@@ -1,7 +1,6 @@
package cgeo.geocaching.ui;
import cgeo.geocaching.R;
-import cgeo.geocaching.Settings;
import cgeo.geocaching.cgSelectMapfile;
import cgeo.geocaching.utils.Log;
@@ -35,7 +34,7 @@ public class MapfileListAdapter extends ArrayAdapter<File> {
}
if (position > getCount()) {
- Log.w(Settings.tag, "cgGPXListAdapter.getView: Attempt to access missing item #" + position);
+ Log.w("cgGPXListAdapter.getView: Attempt to access missing item #" + position);
return null;
}