mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Move dict version check to proper place."
This commit is contained in:
commit
ac37d4d9e3
@ -528,8 +528,6 @@ abstract public class ExpandableBinaryDictionary extends Dictionary {
|
|||||||
} else if (mBinaryDictionary == null) {
|
} else if (mBinaryDictionary == null) {
|
||||||
// Otherwise, load the existing dictionary.
|
// Otherwise, load the existing dictionary.
|
||||||
loadBinaryDictionaryLocked();
|
loadBinaryDictionaryLocked();
|
||||||
}
|
|
||||||
mNeedsToReload = false;
|
|
||||||
if (mBinaryDictionary != null && !(isValidDictionaryLocked()
|
if (mBinaryDictionary != null && !(isValidDictionaryLocked()
|
||||||
// TODO: remove the check below
|
// TODO: remove the check below
|
||||||
&& matchesExpectedBinaryDictFormatVersionForThisType(
|
&& matchesExpectedBinaryDictFormatVersionForThisType(
|
||||||
@ -539,6 +537,8 @@ abstract public class ExpandableBinaryDictionary extends Dictionary {
|
|||||||
// existing files if appropriate.
|
// existing files if appropriate.
|
||||||
createNewDictionaryLocked();
|
createNewDictionaryLocked();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
mNeedsToReload = false;
|
||||||
} finally {
|
} finally {
|
||||||
mIsReloading.set(false);
|
mIsReloading.set(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user