Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb00023b authored by Jean Chalard's avatar Jean Chalard
Browse files

[IL97] Readability improvement

Bug: 8636060
Change-Id: I6b15c7fb91cd4cf23a993541c19842b51e328f8f
parent 95e5e267
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -1020,17 +1020,16 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    private void setSuggestionStripShownInternal(final boolean shown,
            final boolean needsInputViewShown) {
        // 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 shouldShowSuggestions = shown
                && (needsInputViewShown ? inputViewShown : true);
            if (isFullscreenMode()) {
                mSuggestionStripView.setVisibility(
                        shouldShowSuggestions ? View.VISIBLE : View.GONE);
        if (shouldShowSuggestions) {
            mSuggestionStripView.setVisibility(View.VISIBLE);
        } else {
                mSuggestionStripView.setVisibility(
                        shouldShowSuggestions ? View.VISIBLE : View.INVISIBLE);
            }
            mSuggestionStripView.setVisibility(isFullscreenMode() ? View.GONE : View.INVISIBLE);
        }
    }