Fix:android:Fix some c&p errors as reported by Kaamikaze
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 24 Jan 2011 08:53:25 +0000 (08:53 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 24 Jan 2011 08:53:25 +0000 (08:53 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3956 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/android/src/org/navitproject/navit/NavitGraphics.java

index 9e20657..bdbd3ac 100644 (file)
@@ -591,7 +591,7 @@ public class NavitGraphics
                                        try
                                        {
                                                Method m_getX = android.view.MotionEvent.class.getMethod("getX", int.class);
-                                               Method m_getY = android.view.MotionEvent.class.getMethod("getX", int.class);
+                                               Method m_getY = android.view.MotionEvent.class.getMethod("getY", int.class);
                                                float y0 = 0;
                                                try
                                                {
@@ -651,7 +651,7 @@ public class NavitGraphics
                                                float x1 = 0;
                                                try
                                                {
-                                                       Float xxxx = (java.lang.Float) m_getY.invoke(instance, arg1);
+                                                       Float xxxx = (java.lang.Float) m_getX.invoke(instance, arg1);
                                                        x1 = xxxx.floatValue();
                                                }
                                                catch (IllegalArgumentException e)