summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-03-30 15:17:42 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2021-03-31 06:58:12 +0200
commit2e86226cff95100e3c34d0f22ec5ce6429efb8cb (patch)
tree54392341d71240192d1d8bf4dbb9d06517d59c34 /sdext
parenta1abf2c865228e6ed33e99ab73b94357ddbc590f (diff)
tdf#139350 android: Fix handling of new docs
Pass param 'takeOwnership=true' to the 'saveDocumentAs' method when saving a newly created document in Android Viewer in 'LOKitThread::loadNewDocument', so the newly written document is used subsequently, rather than continuing to more or less operate on "private:factory/swriter" (for the Writer case, similar for the others). Extend 'LibreOfficeMainActivity::saveFileToOriginalSource' to handle this case as well (show a proper message and reset the modified state after saving). Drop now unnecessary special handling for the case of saving new files from the toolbar or the dialog shown when exiting without having saved previously. Change-Id: Ief95620e324aa2abc318f1add0b91376ffe669d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113376 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sdext')
0 files changed, 0 insertions, 0 deletions