Make contacts/user dictionary ver2.

Change-Id: I10c29bd45fd37d765f115333087e1700dd90570b
This commit is contained in:
Keisuke Kuroyanagi 2013-12-02 20:38:21 +09:00
parent e717f64659
commit d1501ea789
2 changed files with 4 additions and 3 deletions

View file

@ -37,9 +37,9 @@ import java.util.Map;
* An in memory dictionary for memorizing entries and writing a binary dictionary.
*/
public class DictionaryWriter extends AbstractDictionaryWriter {
private static final int BINARY_DICT_VERSION = 3;
private static final int BINARY_DICT_VERSION = 2;
private static final FormatSpec.FormatOptions FORMAT_OPTIONS =
new FormatSpec.FormatOptions(BINARY_DICT_VERSION, true /* supportsDynamicUpdate */);
new FormatSpec.FormatOptions(BINARY_DICT_VERSION, false /* supportsDynamicUpdate */);
private FusionDictionary mFusionDictionary;

View file

@ -131,7 +131,8 @@ abstract public class ExpandableBinaryDictionary extends Dictionary {
protected abstract boolean hasContentChanged();
protected boolean isValidBinaryDictFormatVersion(final int formatVersion) {
return true;
// TODO: Use ver4 format.
return formatVersion == 2;
}
protected String getFileNameExtentionToOpenDict() {