From 356e6053f88be3964d9bc1cee5d595a00a737c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Sun, 28 Aug 2016 16:50:35 +0200 Subject: [PATCH] Not working try of fixing GestureDetector. --- app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {