summaryrefslogtreecommitdiff
path: root/icon-themes/elementary/cmd/sc_symbolshapes.cloud.png
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-04-15 16:50:16 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2021-04-16 10:17:51 +0200
commit10d1390980f986afef25f715ce41f02b3c586bf1 (patch)
treef5d8df06f9732a40e9f0922d875c96bbf01297a1 /icon-themes/elementary/cmd/sc_symbolshapes.cloud.png
parentb26b05746f8d9ce27347d01e601b61a2a97bbbe7 (diff)
tdf#95615 android: Don't offer "Save" after opening templatedistro/lhm/libreoffice-7-1+backports
When the input document in Android Viewer is a template, a new doc is created and a plain '.uno:Save' (which 'LibreOfficeMainActivity#saveDocument' triggers when the "Save" menu entry is selected) will therefore fail. A proper URI to save to (rather than overwriting the template itself) is only known after a "Save As" anyway, so don't set the 'mDocument' member until then, which leads to the "Save" menu entry becoming disabled, just as is the case when explicitly choosing to create a new document in the start activity. For now, the check whether the document is a template checks whether the MIME type detected for the URI ends with "template", which is the case for ODF and OOXML types (like "application/vnd.oasis.opendocument.text-template" or "application/vnd.openxmlformats-officedocument.wordprocessingml.template"). This can be refined further as needed, e.g. by explicitly adding more MIME types to check. (Editing the actual template instead of creating a new doc from it would be a different use case that remains unsupported also with this change in place.) Change-Id: I81ff957de27f620a026dbc01097b8061886293a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114157 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit 01521db61eb41447113c4bb671ac828a583c0cd1)
Diffstat (limited to 'icon-themes/elementary/cmd/sc_symbolshapes.cloud.png')
0 files changed, 0 insertions, 0 deletions