android: frontend: Remove "Toggle All" option from toggle controls.
- This was broken, and is not terribly useful as-is.
This commit is contained in:
parent
01516f61ba
commit
a758bdd3ce
@ -507,9 +507,6 @@ public final class EmulationActivity extends AppCompatActivity {
|
||||
(dialog, indexSelected, isChecked) -> editor
|
||||
.putBoolean("buttonToggle" + indexSelected, isChecked));
|
||||
|
||||
|
||||
builder.setNeutralButton(getString(R.string.emulation_toggle_all),
|
||||
(dialogInterface, i) -> mEmulationFragment.toggleInputOverlayVisibility());
|
||||
builder.setPositiveButton(getString(R.string.ok), (dialogInterface, i) ->
|
||||
{
|
||||
editor.apply();
|
||||
|
@ -178,23 +178,6 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
||||
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() {
|
||||
mInputOverlay.refreshControls();
|
||||
}
|
||||
|
@ -149,7 +149,6 @@
|
||||
<string name="emulation_edit_layout">Edit Layout</string>
|
||||
<string name="emulation_done">Done</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_choose_controller">Choose Controller</string>
|
||||
<string name="emulation_controller_changed">You may have to reload the game after changing extensions.</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user