am fe824948: Dismiss key preview immediately when Keyboard is closing

* commit 'fe824948bb5c07dcd0a47221cb5b7b4f2f4365ca':
  Dismiss key preview immediately when Keyboard is closing
This commit is contained in:
Tadashi G. Takaoka 2012-06-04 00:04:47 -07:00 committed by Android Git Automerger
commit a6c88f106a

View file

@ -19,6 +19,7 @@ package com.android.inputmethod.keyboard;
import android.os.SystemClock; import android.os.SystemClock;
import android.util.Log; import android.util.Log;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView; import android.widget.TextView;
import com.android.inputmethod.keyboard.internal.PointerTrackerQueue; import com.android.inputmethod.keyboard.internal.PointerTrackerQueue;
@ -213,6 +214,7 @@ public class PointerTracker {
public static void dismissAllKeyPreviews() { public static void dismissAllKeyPreviews() {
for (final PointerTracker tracker : sTrackers) { for (final PointerTracker tracker : sTrackers) {
tracker.getKeyPreviewText().setVisibility(View.INVISIBLE);
tracker.setReleasedKeyGraphics(tracker.mCurrentKey); tracker.setReleasedKeyGraphics(tracker.mCurrentKey);
} }
} }