am ddc21f5b: Dismiss all key preview before showing more suggestions

* commit 'ddc21f5bd1113c24840fd436d09de62c8e476335':
  Dismiss all key preview before showing more suggestions
main
Tadashi G. Takaoka 2014-03-03 21:37:49 -08:00 committed by Android Git Automerger
commit eb41d64e99
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
// {@link MoreKeysKeyboardView}.
// TODO: Remove unused null argument.
mMainKeyboardView.onDismissMoreKeysPanel(null /* unused */);
// Dismiss all key previews and sliding key input preview that may be being showed.
mMainKeyboardView.dismissAllKeyPreviews();
mMainKeyboardView.dismissSlidingKeyInputPreview();
final int stripWidth = getWidth();
final View container = mMoreSuggestionsContainer;
final int maxWidth = stripWidth - container.getPaddingLeft() - container.getPaddingRight();