diff options
author | 2011-06-20 11:58:56 +0900 | |
---|---|---|
committer | 2011-06-20 19:21:31 +0900 | |
commit | 5a2d0630474d6df639e97ff48f5f48b220ca4ee9 (patch) | |
tree | b18a79d43ed577c7ad67f9a29df1f3c2e30aa006 /java/src/com/android/inputmethod/compat/CompatUtils.java | |
parent | e218baa6cc64ae51ecbf0848826253e5f43b9d56 (diff) | |
download | latinime-5a2d0630474d6df639e97ff48f5f48b220ca4ee9.tar.gz latinime-5a2d0630474d6df639e97ff48f5f48b220ca4ee9.tar.xz latinime-5a2d0630474d6df639e97ff48f5f48b220ca4ee9.zip |
Remove unnecessary onRefreshKeyboard call.
When using the sliding spacebar language switch on ICS, both
LatinIME.toggleLanguage() and
InputMethodService.onCurrentInputMethodSubtypeChanged() invoke
LatinIME.onRefreshKeyboard(). This change eliminates the first one if
it isn't necessary.
This change also cleans up the followings.
* reuse theme Context when the keyboard theme hasn't been changed.
* clear the Keyboard cache when theme has been switched.
* eliminates unnecessary Context reference from LatinKeyboard and
SlidingLocaleDrawable.
* recycle Bitmap and reuse Canvas in KeyboardView.
Bug: 4725930
Change-Id: I87366e9304879d94d12b7345adea768d86d43519
Diffstat (limited to 'java/src/com/android/inputmethod/compat/CompatUtils.java')
0 files changed, 0 insertions, 0 deletions