diff options
author | Mert Tümer <merttumer7@gmail.com> | 2018-01-12 15:12:16 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-02-18 02:10:55 +0100 |
commit | 77ec366385b31fbbf8b78961fccaa9d0561661de (patch) | |
tree | e9dc06b1f67f9adf585ebadd524db882fbec0393 /android | |
parent | 2701104d1a08da465daa37ab3bb74e05d2f563c3 (diff) |
[Pardus] tdf#108446 - Shape is not changed after save
This patch is sponsored by ULAKBIM/PARDUS project.
Signed-off-by: Mert Tümer <merttumer7@gmail.com>
Change-Id: I7ee137b2332f799e4301cc3507df4a7b86af74b9
Reviewed-on: https://gerrit.libreoffice.org/47806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/LOKitTileProvider.java | 1 | ||||
-rw-r--r-- | android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java b/android/source/src/java/org/libreoffice/LOKitTileProvider.java index e7b80782f0b8..bdf00ff77e2d 100644 --- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java @@ -593,6 +593,7 @@ class LOKitTileProvider implements TileProvider { private void setGraphicSelection(int type, PointF documentCoordinate) { int x = (int) pixelToTwip(documentCoordinate.x, mDPI); int y = (int) pixelToTwip(documentCoordinate.y, mDPI); + LibreOfficeMainActivity.setDocumentChanged(true); mDocument.setGraphicSelection(type, x, y); } diff --git a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java index a7a13c45c9a4..655bb13f42d7 100644 --- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -116,7 +116,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity implements Settin private boolean isKeyboardOpen = false; private boolean isFormattingToolbarOpen = false; private boolean isSearchToolbarOpen = false; - private boolean isDocumentChanged = false; + private static boolean isDocumentChanged = false; public boolean isNewDocument = false; @Override public void onCreate(Bundle savedInstanceState) { @@ -773,7 +773,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity implements Settin return mIsSpreadsheet; } - public void setDocumentChanged (boolean changed) { + public static void setDocumentChanged (boolean changed) { isDocumentChanged = changed; } |