summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2020-02-07 16:59:31 +0100
committerJan Holesovsky <kendy@collabora.com>2020-02-10 11:26:02 +0100
commitdddb3877b2ce8fcc40bb1b255f47a0012e6e66de (patch)
tree268ef8702f4f3295ff0035997be038c98e6e4282 /comphelper
parentcc8b02a4f9b484590bda45059336053095be90f7 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/lok.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index fa1344330e77..1834665e91a4 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -181,6 +181,10 @@ bool isWhitelistedLanguage(const OUString& lang)
if (!isActive())
return true;
+#ifdef ANDROID
+ (void) lang;
+ return true;
+#else
static bool bInitialized = false;
static std::vector<OUString> aWhitelist;
if (!bInitialized)
@@ -221,6 +225,7 @@ bool isWhitelistedLanguage(const OUString& lang)
}
return false;
+#endif
}
static void (*pStatusIndicatorCallback)(void *data, statusIndicatorCallbackType type, int percent)(nullptr);