From ae395639b0dab9685664b12efb06fe9c0a795deb Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 23 Jun 2013 21:16:55 -0500 Subject: [PATCH] [Android] Fix drawing on screen control setting being derpy at times. --- .../src/org/dolphinemu/dolphinemu/InputConfigActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/InputConfigActivity.java b/Source/Android/src/org/dolphinemu/dolphinemu/InputConfigActivity.java index d7132a4aff..6646865f03 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/InputConfigActivity.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/InputConfigActivity.java @@ -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;