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-14 12:13:11 +0900
committerAdrian Velicu <adrianv@google.com>2014-10-31 14:33:05 +0900
commit7c87859d4c16c9cf19b095b865d7000ebc3cdaa9 (patch)
tree1749fa549095cec85a08b863d3c3fd60577ffa5a /native/jni/src/suggest/policyimpl/dictionary/header/header_policy.h
parentc096100b0191797834ce84e140560c0fadc8b264 (diff)
downloadlatinime-7c87859d4c16c9cf19b095b865d7000ebc3cdaa9.tar.gz
latinime-7c87859d4c16c9cf19b095b865d7000ebc3cdaa9.tar.xz
latinime-7c87859d4c16c9cf19b095b865d7000ebc3cdaa9.zip
Using "blacklist" flag as "possibly offensive"
Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e
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: