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

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

resolved conflicts for merge of be82f297 to master

Change-Id: If49ca384ea0ac415a75f8ea1bad77dc6719cb04d
parents 6b9b8e16 be82f297
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1627,7 +1627,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    }

    public boolean isSuggestionsRequested() {
        // TODO: move this method to mSettingsValues
        // TODO: move this method to mCurrentSettings
        return (null != mInputAttributes && mInputAttributes.mIsSettingsSuggestionStripOn)
                && (mCurrentSettings.isCorrectionOn() || isShowingSuggestionsStrip());
    }
@@ -1953,12 +1953,16 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            // showSuggestions will retrieve the word near the cursor, we don't want that here)
            showSuggestions(suggestedWords, "");
        } else {
            if (!isShowingPunctuationList()) setPunctuationSuggestions();
            clearSuggestions();
        }
    }

    public void setPunctuationSuggestions() {
        if (mCurrentSettings.mBigramPredictionEnabled) {
            clearSuggestions();
        } else {
            setSuggestions(mCurrentSettings.mSuggestPuncList, false);
        }
        setAutoCorrectionIndicator(false);
        setSuggestionStripShown(isSuggestionsStripVisible());
    }
+1 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
    }

    public void setSuggestions(SuggestedWords suggestedWords) {
        if (suggestedWords == null || suggestedWords.size() == 0)
        if (suggestedWords == null)
            return;

        clear();