Fix:android:Fix missing visual touch feedback in gui_internal after rev 4763
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 10 Sep 2011 10:43:25 +0000 (10:43 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 10 Sep 2011 10:43:25 +0000 (10:43 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4775 ffa7fe5e-494d-0410-b361-a75ebd5db220

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

index 4170d19..2520978 100644 (file)
@@ -239,6 +239,7 @@ public class NavitGraphics
                        if (switch_value == MotionEvent.ACTION_DOWN)
                        {
                                touch_mode = PRESSED;
+                               if (!in_map) ButtonCallback(ButtonCallbackID, 1, 1, x, y); // down
                                mPressedPosition = new PointF(x, y);
                                postDelayed(this, time_for_long_press);
                        }
@@ -295,7 +296,7 @@ public class NavitGraphics
                                }
                                else if (touch_mode == PRESSED)
                                {
-                                       ButtonCallback(ButtonCallbackID, 1, 1, x, y); // down
+                                       if (in_map) ButtonCallback(ButtonCallbackID, 1, 1, x, y); // down
                                        ButtonCallback(ButtonCallbackID, 0, 1, x, y); // up
                                }
                                touch_mode = NONE;