aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-03-03 21:02:35 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-03-04 10:02:05 +0900
commit56e0373b5c0c516cd57352cebf882e2b358f168c (patch)
treee7399bd3f71cee7856b6fbf50593917954aeb9df /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
parent858045b41c589e178bef8b8269bb423f231f77e6 (diff)
downloadlatinime-56e0373b5c0c516cd57352cebf882e2b358f168c.tar.gz
latinime-56e0373b5c0c516cd57352cebf882e2b358f168c.tar.xz
latinime-56e0373b5c0c516cd57352cebf882e2b358f168c.zip
Dismiss more keys keyboard before statring more suggestionsview to show
Bug: 13204690 Change-Id: I9188edd0e99ca8acdcb0f0e045be7d267d56b12d
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
index 4ef562d8f..be457ca8e 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
@@ -35,7 +35,6 @@ import android.widget.RelativeLayout;
import android.widget.TextView;
import com.android.inputmethod.keyboard.Keyboard;
-import com.android.inputmethod.keyboard.KeyboardSwitcher;
import com.android.inputmethod.keyboard.MainKeyboardView;
import com.android.inputmethod.keyboard.MoreKeysPanel;
import com.android.inputmethod.latin.AudioAndHapticFeedbackManager;
@@ -312,7 +311,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
}
boolean showMoreSuggestions() {
- final Keyboard parentKeyboard = KeyboardSwitcher.getInstance().getKeyboard();
+ final Keyboard parentKeyboard = mMainKeyboardView.getKeyboard();
if (parentKeyboard == null) {
return false;
}
@@ -320,6 +319,10 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if (!layoutHelper.mMoreSuggestionsAvailable) {
return false;
}
+ // Dismiss another {@link MoreKeysPanel} that may be being showed, for example
+ // {@link MoreKeysKeyboardView}.
+ // TODO: Remove unused null argument.
+ mMainKeyboardView.onDismissMoreKeysPanel(null /* unused */);
final int stripWidth = getWidth();
final View container = mMoreSuggestionsContainer;
final int maxWidth = stripWidth - container.getPaddingLeft() - container.getPaddingRight();