diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-02-26 19:36:10 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-02 08:50:59 +0100 |
commit | b99fe5ebc4c06dfbaf6714ea13ce690fa01988f8 (patch) | |
tree | ff114fd88c2217fbfd1e029405a43f6372c56109 /android | |
parent | b29e9060d5b0b33d54b6131188a95986910be046 (diff) |
android: add selection reset to TileProvider
Change-Id: I9a42913069dcaa2bab1e3db51cebe3a0cdcf5746
Diffstat (limited to 'android')
3 files changed, 12 insertions, 0 deletions
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 @@ -354,6 +354,11 @@ public class LOKitTileProvider implements TileProvider, Document.MessageCallback } @Override + public void setTextSelectionReset() { + mDocument.setTextSelection(Document.TEXT_SELECTION_RESET, 0, 0); + } + + @Override protected void finalize() throws Throwable { close(); super.finalize(); 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 @@ -115,6 +115,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(); } |