mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 16:47:14 -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();
|
||||
if (exit) {
|
||||
((MainActivity) ctx).leaveCustomControls();
|
||||
if(ctx instanceof MainActivity) {
|
||||
((MainActivity) ctx).leaveCustomControls();
|
||||
}else{
|
||||
((Activity)ctx).onBackPressed();
|
||||
}
|
||||
//CustomControlsActivity.super.onBackPressed();
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user