diff options
author | 2010-11-24 17:32:23 +0900 | |
---|---|---|
committer | 2010-11-24 20:53:57 +0900 | |
commit | 1fb28137f43ae083c773c32440981ac61e83fa5d (patch) | |
tree | 66b8edefd96129e56f340ea3b360766fbdb2c2b0 /java/src/com/android/inputmethod/latin/LatinKeyboardView.java | |
parent | 2c60d6e28ecf7d6f7e97a504ebfa97e286d931ed (diff) | |
download | latinime-1fb28137f43ae083c773c32440981ac61e83fa5d.tar.gz latinime-1fb28137f43ae083c773c32440981ac61e83fa5d.tar.xz latinime-1fb28137f43ae083c773c32440981ac61e83fa5d.zip |
Fix a bug at showing warning dialog at the first time when IME is trigerred in voice mode
bug: 3226268
Change-Id: Ife7c752ad309ef796d9b7cc32517f00c2bb2af34
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboardView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java index 4fcfe01ba..ac68e3c39 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java @@ -17,6 +17,7 @@ package com.android.inputmethod.latin; import com.android.inputmethod.latin.BaseKeyboard.Key; +import com.android.inputmethod.voice.VoiceIMEConnector; import android.content.Context; import android.graphics.Canvas; @@ -366,4 +367,10 @@ public class LatinKeyboardView extends BaseKeyboardView { c.drawLine(0, mLastY, getWidth(), mLastY, mPaint); } } + + @Override + protected void onAttachedToWindow() { + // Token is available from here. + VoiceIMEConnector.getInstance().onAttachedToWindow(); + } } |