summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2020-02-06 22:48:29 +0100
committerJan Holesovsky <kendy@collabora.com>2020-02-10 18:14:40 +0100
commit4f9531c81d4190090ede4d657acdd4b7628462d0 (patch)
treede9088031126181c8db424349b4f847f8f0d800e /desktop
parent1d0fc7baaaaea16b4ed0bb656f6c48a6b6c0d4ef (diff)
android hunspell: Turn on the hunspell build on Android...
...and try to register it for use - it's a bundled extension. The attempt to use the Android's native spell checking failed because the combination of gboard + google's spell checker makes every word in the app appear as if spelled correctly. I haven't found any easy way around that, so let's use hunspell instead; but for that, we need to make the bundled extensions work on Android. Change-Id: If6563e497f1d3085c26eda571567242b2c1f6181 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88217 Tested-by: Jan Holesovsky <kendy@collabora.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88364 Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 65698eebbc37..0495fb9febc6 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5918,6 +5918,14 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
SfxApplication::GetOrCreate();
#endif
+#ifdef ANDROID
+ // Register the bundled extensions - so that the dictionaries work
+ desktop::Desktop::SynchronizeExtensionRepositories(false);
+ bool bFailed = desktop::Desktop::CheckExtensionDependencies();
+ if (bFailed)
+ SAL_INFO("lok", "CheckExtensionDependencies failed");
+#endif
+
if (eStage == PRE_INIT)
{
{