Revert "Fix isSuggestionsStripVisible when keyboard hidden"

This reverts commit cb0d1c4c58

Change-Id: Ie2c8e01c25bd051b6157e8f32ab84392a0c7252a
bug: 8954116
main
Ken Wakasa 2013-05-14 11:44:22 +00:00
parent cb0d1c4c58
commit 3efa36f6aa
1 changed files with 5 additions and 14 deletions

View File

@ -2102,25 +2102,16 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
} }
private boolean isSuggestionsStripVisible() { private boolean isSuggestionsStripVisible() {
final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView(); if (mSuggestionStripView == null)
if (null == mainKeyboardView || !mainKeyboardView.isShown()) {
return false; return false;
} if (mSuggestionStripView.isShowingAddToDictionaryHint())
if (mSuggestionStripView == null) {
return false;
}
if (mSuggestionStripView.isShowingAddToDictionaryHint()) {
return true; return true;
} if (null == mSettings.getCurrent())
if (null == mSettings.getCurrent()) {
return false; return false;
} if (!mSettings.getCurrent().isSuggestionStripVisibleInOrientation(mDisplayOrientation))
if (!mSettings.getCurrent().isSuggestionStripVisibleInOrientation(mDisplayOrientation)) {
return false; return false;
} if (mSettings.getCurrent().isApplicationSpecifiedCompletionsOn())
if (mSettings.getCurrent().isApplicationSpecifiedCompletionsOn()) {
return true; return true;
}
return mSettings.getCurrent().isSuggestionsRequested(mDisplayOrientation); return mSettings.getCurrent().isSuggestionsRequested(mDisplayOrientation);
} }