Skip to content
Snippets Groups Projects
  • Tadashi G. Takaoka's avatar
    5a2d0630
    Remove unnecessary onRefreshKeyboard call. · 5a2d0630
    Tadashi G. Takaoka authored
    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
    5a2d0630
    History
    Remove unnecessary onRefreshKeyboard call.
    Tadashi G. Takaoka authored
    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