aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
diff options
context:
space:
mode:
authorAdrian Velicu <adrianv@google.com>2014-10-31 06:49:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-31 06:49:29 +0000
commitaa20342d7ee40fb13483fc2a663493de185a33cd (patch)
tree53060aec9d2367ebba7fb3339c50e8281243a546 /native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
parent0cd1f222fd837179f501651256bc15b42317edd0 (diff)
parent7c87859d4c16c9cf19b095b865d7000ebc3cdaa9 (diff)
downloadlatinime-aa20342d7ee40fb13483fc2a663493de185a33cd.tar.gz
latinime-aa20342d7ee40fb13483fc2a663493de185a33cd.tar.xz
latinime-aa20342d7ee40fb13483fc2a663493de185a33cd.zip
Merge "Using "blacklist" flag as "possibly offensive""
Diffstat (limited to 'native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h')
-rw-r--r--native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
index 44c2f443f..abc7f9906 100644
--- a/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
+++ b/native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
@@ -134,9 +134,11 @@ class HeaderPolicy : public DictionaryHeaderStructurePolicy {
// same so we use them for both here.
switch (mDictFormatVersion) {
case FormatUtils::VERSION_2:
- return FormatUtils::VERSION_2;
case FormatUtils::VERSION_201:
- return FormatUtils::VERSION_201;
+ AKLOGE("Dictionary versions 2 and 201 are incompatible with this version");
+ return FormatUtils::UNKNOWN_VERSION;
+ case FormatUtils::VERSION_202:
+ return FormatUtils::VERSION_202;
case FormatUtils::VERSION_4_ONLY_FOR_TESTING:
return FormatUtils::VERSION_4_ONLY_FOR_TESTING;
case FormatUtils::VERSION_4: