am 49910a9d: Merge "Fix: release lock in UserHistoryDictionary."

* commit '49910a9d774120479d89f537c7e1b4d43e6f153a':
  Fix: release lock in UserHistoryDictionary.
main
Keisuke Kuroynagi 2013-07-04 08:14:58 -07:00 committed by Android Git Automerger
commit 89ca0e13d1
1 changed files with 5 additions and 1 deletions

View File

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