mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -04:00
Undo removal of force close button in-game (#6823)
Reverts commit 19dc51f (cleanup: remove unneeded menu entry) Even if it closes when swiping away the app, there are cases where you cannot swipe it away, or even bring up the navigation bar.
This commit is contained in:
parent
7c9c076105
commit
dcc2b95f54
@ -1,6 +1,7 @@
|
|||||||
package net.kdt.pojavlaunch;
|
package net.kdt.pojavlaunch;
|
||||||
|
|
||||||
import static net.kdt.pojavlaunch.Tools.currentDisplayMetrics;
|
import static net.kdt.pojavlaunch.Tools.currentDisplayMetrics;
|
||||||
|
import static net.kdt.pojavlaunch.Tools.dialogForceClose;
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_ENABLE_GYRO;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_ENABLE_GYRO;
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_USE_ALTERNATE_SURFACE;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_USE_ALTERNATE_SURFACE;
|
||||||
@ -190,10 +191,11 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
|||||||
android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.menu_ingame));
|
android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.menu_ingame));
|
||||||
gameActionClickListener = (parent, view, position, id) -> {
|
gameActionClickListener = (parent, view, position, id) -> {
|
||||||
switch(position) {
|
switch(position) {
|
||||||
case 0: openLogOutput(); break;
|
case 0: dialogForceClose(MainActivity.this); break;
|
||||||
case 1: dialogSendCustomKey(); break;
|
case 1: openLogOutput(); break;
|
||||||
case 2: openQuickSettings(); break;
|
case 2: dialogSendCustomKey(); break;
|
||||||
case 3: openCustomControls(); break;
|
case 3: openQuickSettings(); break;
|
||||||
|
case 4: openCustomControls(); break;
|
||||||
}
|
}
|
||||||
drawerLayout.closeDrawers();
|
drawerLayout.closeDrawers();
|
||||||
};
|
};
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="menu_ingame">
|
<string-array name="menu_ingame">
|
||||||
|
<item>@string/control_forceclose</item>
|
||||||
<item>@string/control_viewout</item>
|
<item>@string/control_viewout</item>
|
||||||
<item>@string/control_customkey</item>
|
<item>@string/control_customkey</item>
|
||||||
<item>@string/quick_setting_title</item>
|
<item>@string/quick_setting_title</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user