Fix contacts/user dictionary writing.
Bug: 10743878 Change-Id: I5d61b7955ef69a635f994f01cc575fb23fdf942bmain
parent
9b78241dff
commit
0011ab4bf3
|
@ -58,7 +58,7 @@ abstract public class AbstractDictionaryWriter extends Dictionary {
|
||||||
final File file = new File(mContext.getFilesDir(), fileName);
|
final File file = new File(mContext.getFilesDir(), fileName);
|
||||||
final File tempFile = new File(mContext.getFilesDir(), tempFileName);
|
final File tempFile = new File(mContext.getFilesDir(), tempFileName);
|
||||||
try {
|
try {
|
||||||
final DictEncoder dictEncoder = new Ver3DictEncoder(file);
|
final DictEncoder dictEncoder = new Ver3DictEncoder(tempFile);
|
||||||
writeDictionary(dictEncoder);
|
writeDictionary(dictEncoder);
|
||||||
tempFile.renameTo(file);
|
tempFile.renameTo(file);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue