Skip to content
Snippets Groups Projects
Commit d1501ea7 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Make contacts/user dictionary ver2.

Change-Id: I10c29bd45fd37d765f115333087e1700dd90570b
parent e717f646
No related branches found
No related tags found
No related merge requests found
...@@ -37,9 +37,9 @@ import java.util.Map; ...@@ -37,9 +37,9 @@ import java.util.Map;
* An in memory dictionary for memorizing entries and writing a binary dictionary. * An in memory dictionary for memorizing entries and writing a binary dictionary.
*/ */
public class DictionaryWriter extends AbstractDictionaryWriter { 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 = 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; private FusionDictionary mFusionDictionary;
......
...@@ -131,7 +131,8 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { ...@@ -131,7 +131,8 @@ abstract public class ExpandableBinaryDictionary extends Dictionary {
protected abstract boolean hasContentChanged(); protected abstract boolean hasContentChanged();
protected boolean isValidBinaryDictFormatVersion(final int formatVersion) { protected boolean isValidBinaryDictFormatVersion(final int formatVersion) {
return true; // TODO: Use ver4 format.
return formatVersion == 2;
} }
protected String getFileNameExtentionToOpenDict() { protected String getFileNameExtentionToOpenDict() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment