mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
[IL97] Readability improvement
Bug: 8636060 Change-Id: I6b15c7fb91cd4cf23a993541c19842b51e328f8f
This commit is contained in:
parent
95e5e267ac
commit
eb00023b9b
@ -1020,17 +1020,16 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
private void setSuggestionStripShownInternal(final boolean shown,
|
private void setSuggestionStripShownInternal(final boolean shown,
|
||||||
final boolean needsInputViewShown) {
|
final boolean needsInputViewShown) {
|
||||||
// TODO: Modify this if we support suggestions with hard keyboard
|
// TODO: Modify this if we support suggestions with hard keyboard
|
||||||
if (onEvaluateInputViewShown() && mSuggestionStripView != null) {
|
if (!onEvaluateInputViewShown() || null == mSuggestionStripView) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
final boolean inputViewShown = mKeyboardSwitcher.isShowingMainKeyboardOrEmojiPalettes();
|
final boolean inputViewShown = mKeyboardSwitcher.isShowingMainKeyboardOrEmojiPalettes();
|
||||||
final boolean shouldShowSuggestions = shown
|
final boolean shouldShowSuggestions = shown
|
||||||
&& (needsInputViewShown ? inputViewShown : true);
|
&& (needsInputViewShown ? inputViewShown : true);
|
||||||
if (isFullscreenMode()) {
|
if (shouldShowSuggestions) {
|
||||||
mSuggestionStripView.setVisibility(
|
mSuggestionStripView.setVisibility(View.VISIBLE);
|
||||||
shouldShowSuggestions ? View.VISIBLE : View.GONE);
|
|
||||||
} else {
|
} else {
|
||||||
mSuggestionStripView.setVisibility(
|
mSuggestionStripView.setVisibility(isFullscreenMode() ? View.GONE : View.INVISIBLE);
|
||||||
shouldShowSuggestions ? View.VISIBLE : View.INVISIBLE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user