Support ver3 dict in native code.
Bug: 6669677 Change-Id: Iafc3287f1f87588a6296593d6b43ea4464c8f553
This commit is contained in:
parent
b0ab71be70
commit
60eb250194
1 changed files with 1 additions and 2 deletions
|
@ -61,8 +61,7 @@ const int BinaryDictionaryFormatUtils::HEADER_VERSION_2_MINIMUM_SIZE = 12;
|
||||||
if (ByteArrayUtils::readUint16(dict, 4) == 2) {
|
if (ByteArrayUtils::readUint16(dict, 4) == 2) {
|
||||||
return VERSION_2;
|
return VERSION_2;
|
||||||
} else if (ByteArrayUtils::readUint16(dict, 4) == 3) {
|
} else if (ByteArrayUtils::readUint16(dict, 4) == 3) {
|
||||||
// TODO: Support version 3 dictionary.
|
return VERSION_3;
|
||||||
return UNKNOWN_VERSION;
|
|
||||||
} else {
|
} else {
|
||||||
return UNKNOWN_VERSION;
|
return UNKNOWN_VERSION;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue