am 2e0fc8bf: am d6d70e73: Merge "Revert "Fix isSuggestionsStripVisible when keyboard hidden""
* commit '2e0fc8bf33411de82c8110878878ec1d6c392fe3': Revert "Fix isSuggestionsStripVisible when keyboard hidden"main
commit
5ee11c5d9a
|
@ -2109,25 +2109,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue