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 11:18:26 +0100
commitf2d67ee76778c27d56eb1d663f8c5cc09906da44 (patch)
tree608c187f3aee03cc4c4f21e5919a9bdd79459244 /desktop
parent2c6dd9cb2c89811497488172aa5874967210ebf8 (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>
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 35964dae4447..8916065bc273 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5910,6 +5910,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)
{
{