aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-02-23 19:01:43 -0800
committerAmith Yamasani <yamasani@google.com>2010-02-24 06:36:19 -0800
commit6516d0fdfcbaa4eb809a8a69bd876293043a68a4 (patch)
tree944fa7d784339d9b8053f646cd2491a6fbc9205a /java/src
parent4ca6d9dc09cf7635c9283e42f155957021b9f9ac (diff)
downloadlatinime-6516d0fdfcbaa4eb809a8a69bd876293043a68a4.tar.gz
latinime-6516d0fdfcbaa4eb809a8a69bd876293043a68a4.tar.xz
latinime-6516d0fdfcbaa4eb809a8a69bd876293043a68a4.zip
Save and restore Auto Dictionary data.
Due to the addition of input language switching, the auto dictionary will be re-created very frequently. We need to save it and restore it during transitions, otherwise the data will be purged too often to be of much use in the multi-lingual case. This also fixes the case where a user frequently turns the phone off/on. Auto dictionary data was not being saved in those situations either. The dictionary will probably never grow too large since most of the frequently used words will be moved to the user dictionary any way. Also, now the input locale is different from the display locale, so save the input locale in the UserDictionary class and insert words into the user dictionary with the correct locale. And NPE fix for bug: 2464573
Diffstat (limited to 'java/src')
0 files changed, 0 insertions, 0 deletions