diff options
author | Jan Holesovsky <kendy@collabora.com> | 2020-02-07 16:59:31 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-05-18 18:06:44 +0200 |
commit | ac014fc6e88c276b54aac6e5af3ced536a7fa98b (patch) | |
tree | ce67a6ec6fec00e2415d5cd0831444b10a094d2b /comphelper | |
parent | d5240b00f150cf0fbc1f451f97993c11fe735f8a (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88367
Tested-by: Jenkins
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/lok.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index 16996d885bf7..c4ff1c641240 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -188,6 +188,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) @@ -228,6 +232,7 @@ bool isWhitelistedLanguage(const OUString& lang) } return false; +#endif } static void (*pStatusIndicatorCallback)(void *data, statusIndicatorCallbackType type, int percent)(nullptr); |