From d9676143dc61e846ffce275de3767eb8f53bf0af Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 7 Feb 2020 16:59:31 +0100 Subject: [PATCH] android hunspell: All languages we pack are the supported ones. Without this, we disable all the languages, because the env. variable is not set. Change-Id: If8f6a9ec6270391d1f8c2bf225c8ea4bb1aae688 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88220 Tested-by: Jenkins CollaboraOffice Reviewed-by: Jan Holesovsky Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88367 Tested-by: Jenkins --- comphelper/source/misc/lok.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index d9eb6fc1b484..f339db2657dc 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -177,6 +177,10 @@ bool isWhitelistedLanguage(const OUString& lang) if (!isActive()) return true; +#ifdef ANDROID + (void) lang; + return true; +#else static bool bInitialized = false; static std::vector aWhitelist; if (!bInitialized) @@ -217,6 +221,7 @@ bool isWhitelistedLanguage(const OUString& lang) } return false; +#endif } static void (*pStatusIndicatorCallback)(void *data, statusIndicatorCallbackType type, int percent)(nullptr);