mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 22:12:46 +00:00
allow using all dictionary file versions
removes a hack preventing version < 18, which is really bad for user-added dictionaries
This commit is contained in:
parent
985981a82f
commit
ec2c3253a0
1 changed files with 4 additions and 1 deletions
|
@ -253,7 +253,10 @@ final public class BinaryDictionaryGetter {
|
||||||
// cachedWordLists may not be null, see doc for getCachedDictionaryList
|
// cachedWordLists may not be null, see doc for getCachedDictionaryList
|
||||||
for (final File f : cachedWordLists) {
|
for (final File f : cachedWordLists) {
|
||||||
final String wordListId = DictionaryInfoUtils.getWordListIdFromFileName(f.getName());
|
final String wordListId = DictionaryInfoUtils.getWordListIdFromFileName(f.getName());
|
||||||
final boolean canUse = f.canRead() && hackCanUseDictionaryFile(f);
|
// remove the hack that requires version 18
|
||||||
|
// danger of getting an old version is rather low, and user-added dictionaries
|
||||||
|
// will usually not work as they will likely start at version 1
|
||||||
|
final boolean canUse = f.canRead(); // && hackCanUseDictionaryFile(f);
|
||||||
if (canUse && DictionaryInfoUtils.isMainWordListId(wordListId)) {
|
if (canUse && DictionaryInfoUtils.isMainWordListId(wordListId)) {
|
||||||
foundMainDict = true;
|
foundMainDict = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue