[Android] Fix drawing on screen control setting being derpy at times.

This commit is contained in:
Ryan Houdek 2013-06-23 21:16:55 -05:00
parent 06b98225e7
commit ae395639b0
1 changed files with 2 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public class InputConfigActivity extends ListActivity {
{
case 0: // On screen controls
String newBind;
if (o.getBind() == "True")
if (o.getBind().equals("True"))
{
Toast.makeText(this, "Not Drawing on screen controls", Toast.LENGTH_SHORT).show();
newBind = "False";
@ -111,9 +111,7 @@ public class InputConfigActivity extends ListActivity {
if (firstEvent)
{
m_values.clear();
for (int a = 0; a < motions.size(); ++a)
{
InputDevice.MotionRange range = motions.get(a);
for (InputDevice.MotionRange range : motions) {
m_values.add(event.getAxisValue(range.getAxis()));
}
firstEvent = false;