Use integer value instead of symbolic name for os version
Change-Id: I1574915ededf5d47d245a3f09692ebbbfe37e4c6
This commit is contained in:
parent
41f7fb51b0
commit
96680f28e8
1 changed files with 2 additions and 1 deletions
|
@ -181,7 +181,8 @@ public class Settings extends PreferenceActivity
|
|||
public boolean onPreferenceClick(Preference pref) {
|
||||
if (pref == mInputLanguageSelection) {
|
||||
final String action;
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
|
||||
if (android.os.Build.VERSION.SDK_INT
|
||||
>= /* android.os.Build.VERSION_CODES.HONEYCOMB */ 10) {
|
||||
action = "android.settings.INPUT_METHOD_AND_SUBTYPE_ENABLER";
|
||||
} else {
|
||||
action = "com.android.inputmethod.latin.INPUT_LANGUAGE_SELECTION";
|
||||
|
|
Loading…
Reference in a new issue