am 25848af5: Tiny refactoring
* commit '25848af55647251d0ba882e1640d08dd1fce7875': Tiny refactoringmain
commit
7ece116261
|
@ -376,7 +376,10 @@ public final class BinaryDictionary extends Dictionary {
|
||||||
private void reopen() {
|
private void reopen() {
|
||||||
close();
|
close();
|
||||||
final File dictFile = new File(mDictFilePath);
|
final File dictFile = new File(mDictFilePath);
|
||||||
mNativeDict = openNative(dictFile.getAbsolutePath(), 0 /* startOffset */,
|
// WARNING: Because we pass 0 as the offstet and file.length() as the length, this can
|
||||||
|
// only be called for actual files. Right now it's only called by the flush() family of
|
||||||
|
// functions, which require an updatable dictionary, so it's okay. But beware.
|
||||||
|
loadDictionary(dictFile.getAbsolutePath(), 0 /* startOffset */,
|
||||||
dictFile.length(), true /* isUpdatable */);
|
dictFile.length(), true /* isUpdatable */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue