Simplification (B4)

Change-Id: Id5abf722a533980ed2d89381dbddc0a71b6f5b6b
This commit is contained in:
Jean Chalard 2012-06-12 10:03:04 +09:00
parent fe53e5c060
commit 64e52051cf

View file

@ -238,12 +238,8 @@ public class SettingsValues {
return mInputAttributes.mEditorAction == EditorInfo.IME_ACTION_NEXT; return mInputAttributes.mEditorAction == EditorInfo.IME_ACTION_NEXT;
} }
private boolean isSuggestionStripRequestedByTextField() {
return mInputAttributes.mIsSettingsSuggestionStripOn;
}
public boolean isSuggestionsRequested(final int displayOrientation) { public boolean isSuggestionsRequested(final int displayOrientation) {
return isSuggestionStripRequestedByTextField() return mInputAttributes.mIsSettingsSuggestionStripOn
&& (isCorrectionOn() || isSuggestionStripVisibleInOrientation(displayOrientation)); && (isCorrectionOn() || isSuggestionStripVisibleInOrientation(displayOrientation));
} }