Dismiss all key preview before showing more suggestions

This CL also release key graphics and dismiss sliding key input
preview.

Bug: 13204690
Change-Id: Ie8eb7b7beca51689a907da9c0713b4d34d48dda1
main
Tadashi G. Takaoka 2014-03-04 14:14:05 +09:00
parent 61c726f591
commit ddc21f5bd1
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}. // {@link MoreKeysKeyboardView}.
// TODO: Remove unused null argument. // TODO: Remove unused null argument.
mMainKeyboardView.onDismissMoreKeysPanel(null /* unused */); 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 int stripWidth = getWidth();
final View container = mMoreSuggestionsContainer; final View container = mMoreSuggestionsContainer;
final int maxWidth = stripWidth - container.getPaddingLeft() - container.getPaddingRight(); final int maxWidth = stripWidth - container.getPaddingLeft() - container.getPaddingRight();