Remove unused code from InputConfigFragment. This was for when the option to draw onscreen controls was in this menu instead of video preferences.

This commit is contained in:
Lioncash 2013-08-21 21:10:23 -04:00
parent 20e82ec08c
commit 97bfa6300d

View File

@ -90,33 +90,11 @@ public final class InputConfigFragment extends Fragment
public void onItemClick(AdapterView<?> parent, View view, int position, long id) public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{ {
InputConfigItem o = adapter.getItem(position); InputConfigItem o = adapter.getItem(position);
switch(position)
{ Toast.makeText(m_activity, getString(R.string.press_button_to_config, o.getName()), Toast.LENGTH_SHORT).show();
case 0: // On screen controls configPosition = position;
String newBind; Configuring = true;
if (o.getBind().equals("True")) firstEvent = true;
{
Toast.makeText(m_activity, getString(R.string.not_drawing_onscreen_controls), Toast.LENGTH_SHORT).show();
newBind = "False";
}
else
{
Toast.makeText(m_activity, getString(R.string.drawing_onscreen_controls), Toast.LENGTH_SHORT).show();
newBind = "True";
}
adapter.remove(o);
o.setBind(newBind);
adapter.insert(o, position);
break;
default: // gamepad controls
Toast.makeText(m_activity, getString(R.string.press_button_to_config, o.getName()), Toast.LENGTH_SHORT).show();
configPosition = position;
Configuring = true;
firstEvent = true;
break;
}
} }
}; };