commit | fbd1866424b39cf5c1b636a7bb31151dba00b9a0 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Wed Mar 31 14:01:59 2010 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Wed Mar 31 14:01:59 2010 -0700 |
tree | 6ddb2250e3ce475082706a941e6f1589e1d102cd | |
parent | 06933183c8b4935f22e793d9f715907653074d2c [diff] |
Avoid race conditions between queries and closing of the auto_dict database. Keep a reference to the openhelper around across locale and input language changes. Also, share the openhelper between the queries and updates. Creating a new one in a separate thread could cause it to be closed at the wrong time. Monkey bugs, probably dupes. Bug: 2560471 Bug: 2544169 Change-Id: I6eb39145de7191732ddde455728bf147a2d1ba31