More verbosity when reporting broken dictionaries
Also added toString for AssetFileAddress for easier debugging. Change-Id: Ie5d15d12bae46c31b28d8c67002e627f4c6690e3main
parent
0179b8ed7f
commit
91a81a2790
|
@ -62,4 +62,9 @@ public final class AssetFileAddress {
|
|||
public void deleteUnderlyingFile() {
|
||||
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());
|
||||
if (null != afa) fileList.add(afa);
|
||||
} 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 New Issue