mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-08 12:18:07 -05:00
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;
|
||||
|
||||
if (settings.autoCorrectText()) {
|
||||
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
|
||||
}
|
||||
}
|
||||
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
||||
|
||||
if (settings.autoCapSentences()) {
|
||||
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user