diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2019-11-18 17:08:00 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-13 20:04:03 +0100 |
commit | d28d47b1bf02c8385c988388ee01726f61d17693 (patch) | |
tree | de7d54919c5c4a094b965d0a7aff6730f6a997bf /android | |
parent | 60ac97df116da5f2d8e405509161ee4ac3167b00 (diff) |
tdf#128101 android: fix documents with manual page break
code reads a .ui file to show a menu to edit/delete that pagebreak. That
file was not packaged in the Android viewer and causes an exception that
is not handled and ultimately results in a crash.
Change-Id: Ie73d886daf9202ba12e1b5a241bc7b6d184ae770
Reviewed-on: https://gerrit.libreoffice.org/83104
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86165
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/build.gradle | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/source/build.gradle b/android/source/build.gradle index fe7ac2d30afe..428b709f4da5 100644 --- a/android/source/build.gradle +++ b/android/source/build.gradle @@ -149,6 +149,13 @@ task copyUnpackAssets(type: Copy) { ) } } + // documents with manual page break trigger attempt to read the ui file + // would trigger a css::container::NoSuchElementException with osl_File_E_NOENT + // if not present and since it is not caught would crash the app... + into('config') { + from "${liboInstdir}/share/config" + include '**/pagebreakmenu.ui' + } } task copyAssets(type: Copy) { |