simplify map listener handling

This commit is contained in:
Hannes Janetzek
2013-11-01 17:58:37 +01:00
parent 0b880e0f0c
commit 1d6bdcb0f2
13 changed files with 73 additions and 190 deletions

View File

@@ -218,7 +218,7 @@ public class MapView extends RelativeLayout {
mPausing = false;
}
AndroidMotionEvent mMotionEvent = new AndroidMotionEvent(this);
AndroidMotionEvent mMotionEvent = new AndroidMotionEvent();
@Override
public boolean onTouchEvent(android.view.MotionEvent motionEvent) {

View File

@@ -18,15 +18,6 @@ import org.oscim.event.MotionEvent;
public class AndroidMotionEvent extends MotionEvent {
/**
*
*/
private static final long serialVersionUID = 1L;
public AndroidMotionEvent(Object source) {
super(source);
}
android.view.MotionEvent mEvent;
public void wrap(android.view.MotionEvent e) {