Merge "Fix: release lock in UserHistoryDictionary."

This commit is contained in:
Keisuke Kuroynagi 2013-07-04 15:13:08 +00:00 committed by Android (Google) Code Review
commit 49910a9d77

View file

@ -320,7 +320,11 @@ public final class UserHistoryDictionary extends ExpandableDictionary {
mUserHistoryDictionary.mBigramListLock.unlock();
}
} else if (mUserHistoryDictionary.mBigramListLock.tryLock()) {
doWriteTaskLocked();
try {
doWriteTaskLocked();
} finally {
mUserHistoryDictionary.mBigramListLock.unlock();
}
}
return null;
}