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

Miklos Vajna vmiklos at collabora.co.uk
Tue Mar 3 01:24:01 PST 2015


 android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit df7aab59c7d6383f420e01293adc54d53bb4e548
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Mar 3 10:22:45 2015 +0100

    android: fix long press not selecting an empty cell
    
    A double click is a set of 4 events, only one of them was sent, that's
    how it worked in gtktiledviewer, but not on Android.
    
    Change-Id: Id0eaef3765d385aab588b834f66b9f4b4f3ccb70

diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
index 099d0f2..78e18d3 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
@@ -263,7 +263,10 @@ public class LOKitThread extends Thread {
         }
         if (touchType.equals("LongPress")) {
             mInvalidationHandler.setOverlayState(InvalidationHandler.OverlayState.SELECTION);
+            mTileProvider.mouseButtonDown(documentCoordinate, 1);
+            mTileProvider.mouseButtonUp(documentCoordinate, 1);
             mTileProvider.mouseButtonDown(documentCoordinate, 2);
+            mTileProvider.mouseButtonUp(documentCoordinate, 2);
         } else { // "SingleTap"
             LibreOfficeMainActivity.mAppContext.showSoftKeyboard();
             mInvalidationHandler.setOverlayState(InvalidationHandler.OverlayState.CURSOR);


More information about the Libreoffice-commits mailing list