diff options
author | 2012-06-05 15:02:27 -0700 | |
---|---|---|
committer | 2012-06-05 15:02:27 -0700 | |
commit | 7b250c25f7876aaa38b7c015ed5d366d49558c49 (patch) | |
tree | 609c8deae7a5018c779ffc66e91e35be8617f85b /java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java | |
parent | fe734c49df96bd392be9e081aa7f969eaa878087 (diff) | |
parent | 6b0d0fa3501247ccf3190c938dec580102fe0473 (diff) | |
download | latinime-7b250c25f7876aaa38b7c015ed5d366d49558c49.tar.gz latinime-7b250c25f7876aaa38b7c015ed5d366d49558c49.tar.xz latinime-7b250c25f7876aaa38b7c015ed5d366d49558c49.zip |
am 6b0d0fa3: am f8233ec3: Merge "Refresh Accessibility key mapping when KeyboardView changes Keyboards." into jb-dev
* commit '6b0d0fa3501247ccf3190c938dec580102fe0473':
Refresh Accessibility key mapping when KeyboardView changes Keyboards.
Diffstat (limited to 'java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java')
-rw-r--r-- | java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java b/java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java index 9986f6ec0..ba08c593c 100644 --- a/java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java +++ b/java/src/com/android/inputmethod/accessibility/AccessibilityEntityProvider.java @@ -85,9 +85,20 @@ public class AccessibilityEntityProvider extends AccessibilityNodeProviderCompat */ public void setView(KeyboardView keyboardView) { mKeyboardView = keyboardView; + updateParentLocation(); + + // Since this class is constructed lazily, we might not get a subsequent + // call to setKeyboard() and therefore need to call it now. + setKeyboard(mKeyboardView.getKeyboard()); + } + /** + * Sets the keyboard represented by this node provider. + * + * @param keyboard The keyboard to represent. + */ + public void setKeyboard(Keyboard keyboard) { assignVirtualViewIds(); - updateParentLocation(); } /** |