Dismiss all key preview before showing more suggestions
This CL also release key graphics and dismiss sliding key input preview. Bug: 13204690 Change-Id: Ie8eb7b7beca51689a907da9c0713b4d34d48dda1main
parent
61c726f591
commit
ddc21f5bd1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue