diff options
| author | Jean Chalard <jchalard@google.com> | 2011-08-30 21:46:33 +0900 |
|---|---|---|
| committer | Jean Chalard <jchalard@google.com> | 2011-08-31 14:37:11 +0900 |
| commit | 7a408431fe6b77bc7a317b86c7adfb1aeebd5def (patch) | |
| tree | 71a50af2ee2d5fb68d8cb031efe1780884a201c4 /java/src/com/android/inputmethod/keyboard/MiniKeyboardView.java | |
| parent | 39cc80660517886c92f57f74fc787b3e2ee53546 (diff) | |
Check the magic number of a decoded file
Checking the magic number of a file upon decoding is necessary,
because if the file is corrupt and we don't check it, we will
fall back to a simple copy of the corrupted file. Latin IME
would realize this and would not crash, but would not use the
corrupted dictionary. If this happened to be a main dictionary,
then the user would lose the ability to use the correct
built-in dictionary.
Not the same, but kinda similar to
Bug: 5223031
Change-Id: Ic2783dc9dd5f3dcf2865623d9452765fe3778db7
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/MiniKeyboardView.java')
0 files changed, 0 insertions, 0 deletions
