mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am cb0d1c4c: Fix isSuggestionsStripVisible when keyboard hidden
* commit 'cb0d1c4c584f3f47da3f630441b7de1e741584e0': Fix isSuggestionsStripVisible when keyboard hidden
This commit is contained in:
commit
dccad3efa4
@ -2102,16 +2102,25 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||
}
|
||||
|
||||
private boolean isSuggestionsStripVisible() {
|
||||
if (mSuggestionStripView == null)
|
||||
final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView();
|
||||
if (null == mainKeyboardView || !mainKeyboardView.isShown()) {
|
||||
return false;
|
||||
if (mSuggestionStripView.isShowingAddToDictionaryHint())
|
||||
}
|
||||
if (mSuggestionStripView == null) {
|
||||
return false;
|
||||
}
|
||||
if (mSuggestionStripView.isShowingAddToDictionaryHint()) {
|
||||
return true;
|
||||
if (null == mSettings.getCurrent())
|
||||
}
|
||||
if (null == mSettings.getCurrent()) {
|
||||
return false;
|
||||
if (!mSettings.getCurrent().isSuggestionStripVisibleInOrientation(mDisplayOrientation))
|
||||
}
|
||||
if (!mSettings.getCurrent().isSuggestionStripVisibleInOrientation(mDisplayOrientation)) {
|
||||
return false;
|
||||
if (mSettings.getCurrent().isApplicationSpecifiedCompletionsOn())
|
||||
}
|
||||
if (mSettings.getCurrent().isApplicationSpecifiedCompletionsOn()) {
|
||||
return true;
|
||||
}
|
||||
return mSettings.getCurrent().isSuggestionsRequested(mDisplayOrientation);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user