mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Inline a method for simplicity (B1)
This has a confusing name and is a one-liner Change-Id: I954a648a8413e38a535c2b81e4b171e1bdc9f1c2
This commit is contained in:
parent
e21a092bec
commit
3d44f489b3
@ -1629,7 +1629,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
public boolean isSuggestionsRequested() {
|
||||
// TODO: move this method to mCurrentSettings
|
||||
return (null != mInputAttributes && mInputAttributes.mIsSettingsSuggestionStripOn)
|
||||
&& (mCurrentSettings.isCorrectionOn() || isShowingSuggestionsStrip());
|
||||
&& (mCurrentSettings.isCorrectionOn()
|
||||
|| mCurrentSettings.isSuggestionStripVisibleInOrientation(mDisplayOrientation));
|
||||
}
|
||||
|
||||
public boolean isShowingPunctuationList() {
|
||||
@ -1637,16 +1638,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
return mCurrentSettings.mSuggestPuncList == mSuggestionsView.getSuggestions();
|
||||
}
|
||||
|
||||
public boolean isShowingSuggestionsStrip() {
|
||||
return mCurrentSettings.isSuggestionStripVisibleInOrientation(mDisplayOrientation);
|
||||
}
|
||||
|
||||
public boolean isSuggestionsStripVisible() {
|
||||
if (mSuggestionsView == null)
|
||||
return false;
|
||||
if (mSuggestionsView.isShowingAddToDictionaryHint())
|
||||
return true;
|
||||
if (!isShowingSuggestionsStrip())
|
||||
if (!mCurrentSettings.isSuggestionStripVisibleInOrientation(mDisplayOrientation))
|
||||
return false;
|
||||
if (null != mInputAttributes && mInputAttributes.mApplicationSpecifiedCompletionOn)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user