android: frontend: Remove "Toggle All" option from toggle controls.

- This was broken, and is not terribly useful as-is.
This commit is contained in:
bunnei 2019-07-23 17:47:01 -04:00
parent c54b1fa0e1
commit 71eb3898b6
3 changed files with 0 additions and 21 deletions

View File

@ -507,9 +507,6 @@ public final class EmulationActivity extends AppCompatActivity {
(dialog, indexSelected, isChecked) -> editor (dialog, indexSelected, isChecked) -> editor
.putBoolean("buttonToggle" + indexSelected, isChecked)); .putBoolean("buttonToggle" + indexSelected, isChecked));
builder.setNeutralButton(getString(R.string.emulation_toggle_all),
(dialogInterface, i) -> mEmulationFragment.toggleInputOverlayVisibility());
builder.setPositiveButton(getString(R.string.ok), (dialogInterface, i) -> builder.setPositiveButton(getString(R.string.ok), (dialogInterface, i) ->
{ {
editor.apply(); editor.apply();

View File

@ -178,23 +178,6 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
DirectoryInitializationService.startService(getActivity()); DirectoryInitializationService.startService(getActivity());
} }
public void toggleInputOverlayVisibility() {
SharedPreferences.Editor editor = mPreferences.edit();
// If the overlay is currently set to INVISIBLE
if (!mPreferences.getBoolean("showInputOverlay", false)) {
// Set it to VISIBLE
mInputOverlay.setVisibility(View.VISIBLE);
editor.putBoolean("showInputOverlay", true);
} else {
// Set it to INVISIBLE
mInputOverlay.setVisibility(View.GONE);
editor.putBoolean("showInputOverlay", false);
}
editor.apply();
}
public void refreshInputOverlay() { public void refreshInputOverlay() {
mInputOverlay.refreshControls(); mInputOverlay.refreshControls();
} }

View File

@ -149,7 +149,6 @@
<string name="emulation_edit_layout">Edit Layout</string> <string name="emulation_edit_layout">Edit Layout</string>
<string name="emulation_done">Done</string> <string name="emulation_done">Done</string>
<string name="emulation_toggle_controls">Toggle Controls</string> <string name="emulation_toggle_controls">Toggle Controls</string>
<string name="emulation_toggle_all">Toggle All</string>
<string name="emulation_control_scale">Adjust Scale</string> <string name="emulation_control_scale">Adjust Scale</string>
<string name="emulation_choose_controller">Choose Controller</string> <string name="emulation_choose_controller">Choose Controller</string>
<string name="emulation_controller_changed">You may have to reload the game after changing extensions.</string> <string name="emulation_controller_changed">You may have to reload the game after changing extensions.</string>