diff --git a/app/src/main/java/org/nitri/opentopo/overlay/GestureOverlay.java b/app/src/main/java/org/nitri/opentopo/overlay/GestureOverlay.java index e4cd3ca..d354561 100644 --- a/app/src/main/java/org/nitri/opentopo/overlay/GestureOverlay.java +++ b/app/src/main/java/org/nitri/opentopo/overlay/GestureOverlay.java @@ -1,31 +1,31 @@ -package org.nitri.opentopo.overlay; - -import android.view.MotionEvent; - -import org.osmdroid.views.MapView; -import org.osmdroid.views.overlay.Overlay; - -public class GestureOverlay extends Overlay { - - GestureCallback gestureCallback; - - public GestureOverlay(GestureCallback gestureCallback) { - this.gestureCallback = gestureCallback; - } - - @Override - public boolean onFling(MotionEvent pEvent1, MotionEvent pEvent2, float pVelocityX, float pVelocityY, MapView pMapView) { - gestureCallback.onUserMapInteraction(); - return super.onFling(pEvent1, pEvent2, pVelocityX, pVelocityY, pMapView); - } - - @Override - public boolean onScroll(MotionEvent pEvent1, MotionEvent pEvent2, float pDistanceX, float pDistanceY, MapView pMapView) { - gestureCallback.onUserMapInteraction(); - return super.onScroll(pEvent1, pEvent2, pDistanceX, pDistanceY, pMapView); - } - - public interface GestureCallback { - void onUserMapInteraction(); - } -} +package org.nitri.opentopo.overlay; + +import android.view.MotionEvent; + +import org.osmdroid.views.MapView; +import org.osmdroid.views.overlay.Overlay; + +public class GestureOverlay extends Overlay { + + GestureCallback gestureCallback; + + public GestureOverlay(GestureCallback gestureCallback) { + this.gestureCallback = gestureCallback; + } + + @Override + public boolean onFling(MotionEvent pEvent1, MotionEvent pEvent2, float pVelocityX, float pVelocityY, MapView pMapView) { + gestureCallback.onUserMapInteraction(); + return super.onFling(pEvent1, pEvent2, pVelocityX, pVelocityY, pMapView); + } + + @Override + public boolean onScroll(MotionEvent pEvent1, MotionEvent pEvent2, float pDistanceX, float pDistanceY, MapView pMapView) { + gestureCallback.onUserMapInteraction(); + return super.onScroll(pEvent1, pEvent2, pDistanceX, pDistanceY, pMapView); + } + + public interface GestureCallback { + void onUserMapInteraction(); + } +} diff --git a/app/src/main/res/drawable-hdpi/ic_map_bearing.png b/app/src/main/res/drawable-hdpi/ic_map_bearing.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-hdpi/ic_map_location.png b/app/src/main/res/drawable-hdpi/ic_map_location.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-mdpi/ic_map_bearing.png b/app/src/main/res/drawable-mdpi/ic_map_bearing.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-mdpi/ic_map_location.png b/app/src/main/res/drawable-mdpi/ic_map_location.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-xhdpi/ic_map_bearing.png b/app/src/main/res/drawable-xhdpi/ic_map_bearing.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-xhdpi/ic_map_location.png b/app/src/main/res/drawable-xhdpi/ic_map_location.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-xxhdpi/ic_map_bearing.png b/app/src/main/res/drawable-xxhdpi/ic_map_bearing.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-xxhdpi/ic_map_location.png b/app/src/main/res/drawable-xxhdpi/ic_map_location.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_map_bearing.png b/app/src/main/res/drawable-xxxhdpi/ic_map_bearing.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_map_location.png b/app/src/main/res/drawable-xxxhdpi/ic_map_location.png old mode 100644 new mode 100755 diff --git a/build.gradle b/build.gradle index 8ba9f90..b1aa8be 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.1.1' + classpath 'com.android.tools.build:gradle:8.1.2' } } diff --git a/gradlew b/gradlew old mode 100644 new mode 100755