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

New commits:
commit df7aab59c7d6383f420e01293adc54d53bb4e548
Author: Miklos Vajna <vmik...@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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to