am 91a81a27
: More verbosity when reporting broken dictionaries
* commit '91a81a2790ae968ca4bca0451cf5a4ed8fc71d71': More verbosity when reporting broken dictionaries
This commit is contained in:
commit
7cd2352a40
2 changed files with 7 additions and 1 deletions
|
@ -62,4 +62,9 @@ public final class AssetFileAddress {
|
||||||
public void deleteUnderlyingFile() {
|
public void deleteUnderlyingFile() {
|
||||||
FileUtils.deleteRecursively(new File(mFilename));
|
FileUtils.deleteRecursively(new File(mFilename));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.format("%s (offset=%d, length=%d)", mFilename, mOffset, mLength);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -284,7 +284,8 @@ final public class BinaryDictionaryGetter {
|
||||||
final AssetFileAddress afa = AssetFileAddress.makeFromFileName(f.getPath());
|
final AssetFileAddress afa = AssetFileAddress.makeFromFileName(f.getPath());
|
||||||
if (null != afa) fileList.add(afa);
|
if (null != afa) fileList.add(afa);
|
||||||
} else {
|
} else {
|
||||||
Log.e(TAG, "Found a cached dictionary file but cannot read or use it");
|
Log.e(TAG, "Found a cached dictionary file for " + locale.toString()
|
||||||
|
+ " but cannot read or use it");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue