summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2020-03-05 15:27:13 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2020-03-05 17:29:11 +0100
commit7f049babd79ad14242dd346945c31a90607082ed (patch)
tree6420b8b512d04ba29ca672cea294d1fa0c9f91cb /desktop
parent34c4800f6a8b9383418a2a7279accfbbac1762ac (diff)
android hunspell: Disable for Android Viewer
Since hunspell/extension support does not work for the Fennec-based Android Viewer, only enable the feature for the LibreOffice-Online-based Android app, not Android Viewer. This amends commits 4f9531c81d4190090ede4d657acdd4b7628462d0 ("android hunspell: Turn on the hunspell build on Android...", 2020-02-06) and 99e143cb771446b592e0d9e52bb16563e114b69a ("android hunspell: Don't explicitly disable extensions on Android.", 2020-02-07) to prevent Android Viewer from crashing whenever trying to open a document. Change-Id: Ib35fb35baf542a66b77ce2eed902e68adfec7349 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90021 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 31ca77f7d7bb..3e9332bca713 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5928,7 +5928,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
SfxApplication::GetOrCreate();
#endif
-#ifdef ANDROID
+#if HAVE_FEATURE_ANDROID_LOK
// Register the bundled extensions - so that the dictionaries work
desktop::Desktop::SynchronizeExtensionRepositories(false);
bool bFailed = desktop::Desktop::CheckExtensionDependencies();