diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-04-07 16:09:43 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-04-07 16:09:43 +0200 |
| commit | 2d776212bc293cb67ba96ad99e607824f8796c68 (patch) | |
| tree | e217a79645150fb6216e5d551c67c9b5ab35296b /main/src/cgeo/geocaching/ui | |
| parent | 2b2269c2e9a00580280b5bb95c4f238c515c8411 (diff) | |
| download | cgeo-2d776212bc293cb67ba96ad99e607824f8796c68.zip cgeo-2d776212bc293cb67ba96ad99e607824f8796c68.tar.gz cgeo-2d776212bc293cb67ba96ad99e607824f8796c68.tar.bz2 | |
Remove unused field
Diffstat (limited to 'main/src/cgeo/geocaching/ui')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/CacheListAdapter.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheListAdapter.java b/main/src/cgeo/geocaching/ui/CacheListAdapter.java index 254749e..d827e3e 100644 --- a/main/src/cgeo/geocaching/ui/CacheListAdapter.java +++ b/main/src/cgeo/geocaching/ui/CacheListAdapter.java @@ -543,10 +543,10 @@ public class CacheListAdapter extends ArrayAdapter<Geocache> { public TouchListener(final Geocache cache, final View view) { this.cache = cache; - final FlingGesture dGesture = new FlingGesture(cache, view); - gestureDetector = new GestureDetector(getContext(), dGesture); + gestureDetector = new GestureDetector(getContext(), new FlingGesture(cache)); } + // Tap on item @Override public void onClick(final View view) { if (isSelectMode()) { @@ -557,14 +557,14 @@ public class CacheListAdapter extends ArrayAdapter<Geocache> { } } - // long tap on item + // Long tap on item @Override public boolean onLongClick(final View view) { view.showContextMenu(); return true; } - // swipe on item + // Swipe on item @Override public boolean onTouch(final View view, final MotionEvent event) { return gestureDetector.onTouchEvent(event); @@ -575,11 +575,9 @@ public class CacheListAdapter extends ArrayAdapter<Geocache> { private class FlingGesture extends GestureDetector.SimpleOnGestureListener { private final Geocache cache; - private final View view; - public FlingGesture(final Geocache cache, final View view) { + public FlingGesture(final Geocache cache) { this.cache = cache; - this.view = view; } @Override |
