(Android Phoenix) Add Xperia Play detection based on MODEL string
This commit is contained in:
parent
0b45fb1483
commit
0d873654cc
|
@ -729,6 +729,27 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||||
});
|
});
|
||||||
alert.show();
|
alert.show();
|
||||||
retval = true;
|
retval = true;
|
||||||
|
} else if (android.os.Build.MODEL.equals("R800x")) {
|
||||||
|
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||||
|
.setTitle("Xperia Play detected")
|
||||||
|
.setMessage(message)
|
||||||
|
.setPositiveButton("OK",
|
||||||
|
new DialogInterface.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(DialogInterface dialog,
|
||||||
|
int which) {
|
||||||
|
SharedPreferences prefs = getPreferences();
|
||||||
|
SharedPreferences.Editor edit = prefs
|
||||||
|
.edit();
|
||||||
|
edit.putBoolean("input_overlay_enable",
|
||||||
|
false);
|
||||||
|
edit.putBoolean("input_autodetect_enable",
|
||||||
|
true);
|
||||||
|
edit.commit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
alert.show();
|
||||||
|
retval = true;
|
||||||
} else if (android.os.Build.ID.equals("JSS15J")) {
|
} else if (android.os.Build.ID.equals("JSS15J")) {
|
||||||
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
AlertDialog.Builder alert = new AlertDialog.Builder(this)
|
||||||
.setTitle("Nexus 7 2013 detected")
|
.setTitle("Nexus 7 2013 detected")
|
||||||
|
|
Loading…
Reference in New Issue