Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Fix drawing on screen control setting being derpy at times.
  • Loading branch information
Sonicadvance1 committed Jun 24, 2013
1 parent 06b9822 commit ae39563
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -66,7 +66,7 @@ protected void onListItemClick(ListView l, View v, int position, long id) {
{
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";
Expand Down Expand Up @@ -111,9 +111,7 @@ public boolean dispatchGenericMotionEvent(MotionEvent event) {
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;
Expand Down

0 comments on commit ae39563

Please sign in to comment.