mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
Auto-exit when saving custom controls ingame
This commit is contained in:
parent
26cedf6c37
commit
35f1dc32a6
@ -178,7 +178,11 @@ public class CustomControlsActivity extends BaseActivity
|
|||||||
|
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
if (exit) {
|
if (exit) {
|
||||||
((MainActivity) ctx).leaveCustomControls();
|
if(ctx instanceof MainActivity) {
|
||||||
|
((MainActivity) ctx).leaveCustomControls();
|
||||||
|
}else{
|
||||||
|
((Activity)ctx).onBackPressed();
|
||||||
|
}
|
||||||
//CustomControlsActivity.super.onBackPressed();
|
//CustomControlsActivity.super.onBackPressed();
|
||||||
}
|
}
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user