changeset 1:30f975176f8e

Icon
author Brad Greco <brad@bgreco.net>
date Tue, 21 Jan 2014 20:06:31 -0600
parents 3da8a7a621cd
children fbccc77ea0e6
files GMapZoomInvert/res/drawable-hdpi/ic_launcher.png GMapZoomInvert/res/drawable-mdpi/ic_launcher.png GMapZoomInvert/res/drawable-xhdpi/ic_launcher.png GMapZoomInvert/src/net/bgreco/gmapzoominvert/GMapZoomInvert.java
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
Binary file GMapZoomInvert/res/drawable-hdpi/ic_launcher.png has changed
Binary file GMapZoomInvert/res/drawable-mdpi/ic_launcher.png has changed
Binary file GMapZoomInvert/res/drawable-xhdpi/ic_launcher.png has changed
--- a/GMapZoomInvert/src/net/bgreco/gmapzoominvert/GMapZoomInvert.java	Mon Jan 20 22:56:13 2014 -0600
+++ b/GMapZoomInvert/src/net/bgreco/gmapzoominvert/GMapZoomInvert.java	Tue Jan 21 20:06:31 2014 -0600
@@ -29,12 +29,6 @@
 
 public class GMapZoomInvert implements IXposedHookLoadPackage {
 
-	private float lastTapX;
-	private float lastTapY;
-	private long lastTapTime = 0;
-	private boolean doubleTap = false;
-	private boolean zooming = false;
-	
 	@Override
 	public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
 		if(!lpparam.packageName.equals("com.google.android.apps.maps"))
@@ -42,6 +36,12 @@
 		
 		findAndHookMethod("com.google.android.apps.gmm.map.legacy.internal.vector.VectorMapViewImpl", lpparam.classLoader, "onTouchEvent", MotionEvent.class, new XC_MethodHook() {
 
+			private float lastTapX;
+			private float lastTapY;
+			private long lastTapTime = 0;
+			private boolean doubleTap = false;
+			private boolean zooming = false;
+			
 			@Override
 			protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
 				MotionEvent e = (MotionEvent) param.args[0];