summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-07-18 18:41:15 -0700
committerKurt Partridge <kep@google.com>2012-07-22 18:36:43 -0700
commit4331012a9e7779ff7c8359a443dc5815ee6ea8d9 (patch)
tree3ee5e6b96614a423c4eb98f7160ed68eaedce1d5 /java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
parent3c233bf1a5003c478a27964758afe2ca581d3d8b (diff)
ResearchLog splash screen
Bug: 6188932 Change-Id: I1b247ecc26a2dd4f3f1c1b1cd3d928af717ebdd5
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
index cf196638d..0a7e7a2e3 100644
--- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
@@ -509,6 +509,17 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
}
@Override
+ protected void onAttachedToWindow() {
+ super.onAttachedToWindow();
+ // Notify the research logger that the keyboard view has been attached. This is needed
+ // to properly show the splash screen, which requires that the window token of the
+ // KeyboardView be non-null.
+ if (ProductionFlag.IS_EXPERIMENTAL) {
+ ResearchLogger.getInstance().latinKeyboardView_onAttachedToWindow();
+ }
+ }
+
+ @Override
public void cancelAllMessages() {
mKeyTimerHandler.cancelAllMessages();
super.cancelAllMessages();