From b99fe5ebc4c06dfbaf6714ea13ce690fa01988f8 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 26 Feb 2015 19:36:10 +0900 Subject: android: add selection reset to TileProvider Change-Id: I9a42913069dcaa2bab1e3db51cebe3a0cdcf5746 --- .../LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java | 5 +++++ .../LOAndroid3/src/java/org/libreoffice/MockTileProvider.java | 5 +++++ .../LOAndroid3/src/java/org/libreoffice/TileProvider.java | 2 ++ 3 files changed, 12 insertions(+) (limited to 'android') diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java index f3af7062a6ed..c2d59e0cda69 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java @@ -353,6 +353,11 @@ public class LOKitTileProvider implements TileProvider, Document.MessageCallback mDocument.setTextSelection(Document.TEXT_SELECTION_END, x, y); } + @Override + public void setTextSelectionReset() { + mDocument.setTextSelection(Document.TEXT_SELECTION_RESET, 0, 0); + } + @Override protected void finalize() throws Throwable { close(); diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java index b4f1b82c7e3d..66ad101f27fc 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java @@ -114,6 +114,11 @@ public class MockTileProvider implements TileProvider { } + @Override + public void setTextSelectionReset() { + + } + @Override public void changePart(int partIndex) { } diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java index d749f780d812..6c284cee84f6 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java @@ -86,4 +86,6 @@ public interface TileProvider { void setTextSelectionStart(PointF documentCoordinate); void setTextSelectionEnd(PointF documentCoordinate); + + void setTextSelectionReset(); } -- cgit