diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java index 4349bb7..a5c4a50 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java @@ -65,7 +65,6 @@ public class MainActivity extends ActionBarActivity implements GestureDetector.O // LinearLayout locations = (LinearLayout) findViewById(R.id.locations); // locations.setOnTouchListener(new OnSwipeTouchListener); - gestureDetector = new GestureDetectorCompat(this, this); updateSwipeHandler(); } @@ -220,6 +219,7 @@ public class MainActivity extends ActionBarActivity implements GestureDetector.O gestureDetector.onTouchEvent(ev); } }); + gestureDetector = new GestureDetectorCompat(this, this); } private void swipeRight() {