Allow gamepad selection to work from persisted bindings

This fixes the issue that adding gamepad settings for external controller mappings  revert to mouse on load/scroll
This commit is contained in:
Charles Vaughn authored and GitHub committed 2024-02-29 23:57:51 -08:00
1 parent 550f62b1a6
commit 3ddbfd4f79
1 file changed
+1 -1
@@ -218,7 +218,7 @@ public class ExternalControllerBindingsActivity extends AppCompatActivity {
@Override
public void onNothingSelected(AdapterView<?> parent) {}
});
holder.bindingType.setSelection(item.getBinding().isKeyboard() ? 0 : 1, false);
holder.bindingType.setSelection(item.getBinding().isKeyboard() ? 0 : item.getBinding().isMouse() : 1 ? 2, false);
holder.binding.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override