summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-07-07 22:02:17 -0700
committerTadashi G. Takaoka <takaoka@google.com>2011-07-07 22:02:17 -0700
commitbb4be5444b845655c0eb80bcfbb66f93603802ea (patch)
tree0aa27c9edad98423ad7bd3f1b4d1b6b6aca963f3 /java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java
parent1bd62a56211db2933eb5dd735c108e610111d6fb (diff)
Override onSizeChanged only on main keyboard view
Bug: 4768084 Change-Id: I555efbd1bf75691a3a2724e9d9c1a9055039aacc
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java
index c8cfb43e3..2dd863e6d 100644
--- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java
+++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardBaseView.java
@@ -290,6 +290,12 @@ public class LatinKeyboardBaseView extends KeyboardView {
return mKeyboardActionListener;
}
+ @Override
+ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
+ // TODO: Should notify InputMethodService instead?
+ KeyboardSwitcher.getInstance().onSizeChanged();
+ }
+
/**
* Attaches a keyboard to this view. The keyboard can be switched at any time and the
* view will re-layout itself to accommodate the keyboard.