[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - android/experimental

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Wed Feb 25 23:46:18 PST 2015


 android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5a2eeef636cdc16dd0c8978c491c93a5ab429720
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Thu Feb 26 16:42:56 2015 +0900

    android: first set overlay state and send mouse button event later
    
    Change-Id: I30d909ce04baaab8bed1e8bd03b4926b95ed95ee

diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
index c2dbb23..6f63e93 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
@@ -232,13 +232,13 @@ public class LOKitThread extends Thread {
         }
         if (touchType.equals("LongPress")) {
             LibreOfficeMainActivity.mAppContext.hideSoftKeyboard();
-            mTileProvider.mouseButtonDown(mDocumentTouchCoordinate, 2);
             mInvalidationHandler.setOverlayState(InvalidationHandler.OverlayState.SELECTION);
+            mTileProvider.mouseButtonDown(mDocumentTouchCoordinate, 2);
         } else { // "SingleTap"
             LibreOfficeMainActivity.mAppContext.showSoftKeyboard();
+            mInvalidationHandler.setOverlayState(InvalidationHandler.OverlayState.CURSOR);
             mTileProvider.mouseButtonDown(mDocumentTouchCoordinate, 1);
             mTileProvider.mouseButtonUp(mDocumentTouchCoordinate, 1);
-            mInvalidationHandler.setOverlayState(InvalidationHandler.OverlayState.CURSOR);
         }
     }
 


More information about the Libreoffice-commits mailing list