Merge "Inline a method for simplicity (B1)"
This commit is contained in:
commit
6ebd93951f
1 changed files with 3 additions and 6 deletions
|
@ -1629,7 +1629,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
public boolean isSuggestionsRequested() {
|
public boolean isSuggestionsRequested() {
|
||||||
// TODO: move this method to mCurrentSettings
|
// TODO: move this method to mCurrentSettings
|
||||||
return (null != mInputAttributes && mInputAttributes.mIsSettingsSuggestionStripOn)
|
return (null != mInputAttributes && mInputAttributes.mIsSettingsSuggestionStripOn)
|
||||||
&& (mCurrentSettings.isCorrectionOn() || isShowingSuggestionsStrip());
|
&& (mCurrentSettings.isCorrectionOn()
|
||||||
|
|| mCurrentSettings.isSuggestionStripVisibleInOrientation(mDisplayOrientation));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isShowingPunctuationList() {
|
public boolean isShowingPunctuationList() {
|
||||||
|
@ -1637,16 +1638,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
return mCurrentSettings.mSuggestPuncList == mSuggestionsView.getSuggestions();
|
return mCurrentSettings.mSuggestPuncList == mSuggestionsView.getSuggestions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isShowingSuggestionsStrip() {
|
|
||||||
return mCurrentSettings.isSuggestionStripVisibleInOrientation(mDisplayOrientation);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isSuggestionsStripVisible() {
|
public boolean isSuggestionsStripVisible() {
|
||||||
if (mSuggestionsView == null)
|
if (mSuggestionsView == null)
|
||||||
return false;
|
return false;
|
||||||
if (mSuggestionsView.isShowingAddToDictionaryHint())
|
if (mSuggestionsView.isShowingAddToDictionaryHint())
|
||||||
return true;
|
return true;
|
||||||
if (!isShowingSuggestionsStrip())
|
if (!mCurrentSettings.isSuggestionStripVisibleInOrientation(mDisplayOrientation))
|
||||||
return false;
|
return false;
|
||||||
if (null != mInputAttributes && mInputAttributes.mApplicationSpecifiedCompletionOn)
|
if (null != mInputAttributes && mInputAttributes.mApplicationSpecifiedCompletionOn)
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue