[Libreoffice-commits] core.git: android/source
Michael Weghorn (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 31 18:08:17 UTC 2021
android/source/src/java/org/libreoffice/LOKitTileProvider.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 19e1f3723d4bfb91dadf77b398261da0e8237a8b
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Wed Mar 31 11:22:30 2021 +0200
Commit: Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Wed Mar 31 20:07:28 2021 +0200
android: Only update file path for "real Save As"
Follow-up for commit a1abf2c865228e6ed33e99ab73b94357ddbc590f
(tdf#139350 android: Add param to allow a "real" "Save As").
The file path should only be updated when the newly saved
doc is actually used (i.e. 'takeOwnership=true'),
not when just saving a copy or exporting to a different
file format.
Change-Id: Ia3120a94b7fcc79c1a740a10bade8721f6771d78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113404
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
index 0a9ad6a90685..85eda566bae3 100644
--- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java
@@ -349,7 +349,9 @@ class LOKitTileProvider implements TileProvider {
}
});
} else {
- mInputFile = filePath;
+ if (takeOwnership) {
+ mInputFile = filePath;
+ }
LOKitShell.getMainHandler().post(new Runnable() {
@Override
public void run() {
More information about the Libreoffice-commits
mailing list