Merge "Fix contacts/user dictionary writing."

This commit is contained in:
Keisuke Kuroyanagi 2013-09-18 07:00:58 +00:00 committed by Android (Google) Code Review
commit 4ad4b9d976

View file

@ -58,7 +58,7 @@ abstract public class AbstractDictionaryWriter extends Dictionary {
final File file = new File(mContext.getFilesDir(), fileName);
final File tempFile = new File(mContext.getFilesDir(), tempFileName);
try {
final DictEncoder dictEncoder = new Ver3DictEncoder(file);
final DictEncoder dictEncoder = new Ver3DictEncoder(tempFile);
writeDictionary(dictEncoder);
tempFile.renameTo(file);
} catch (IOException e) {