ConversationActivity: Remove code to keep compatibility with api level 3. MinSdkVersion is 4.
This commit is contained in:
parent
9a05d3b606
commit
84c3025c26
|
@ -253,14 +253,8 @@ public class ConversationActivity extends SherlockActivity implements ServiceCon
|
||||||
|
|
||||||
int setInputTypeFlags = 0;
|
int setInputTypeFlags = 0;
|
||||||
|
|
||||||
if (settings.autoCorrectText()) {
|
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
||||||
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
|
||||||
} else {
|
|
||||||
// keep compatibility with api level 3
|
|
||||||
if ((android.os.Build.VERSION.SDK.charAt(0) - '0') >= 5) {
|
|
||||||
setInputTypeFlags |= 0x80000; // InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (settings.autoCapSentences()) {
|
if (settings.autoCapSentences()) {
|
||||||
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
|
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue