mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 00:29:50 -04:00
Custom controls: add a null check to fixing crash
This commit is contained in:
parent
12ebe828fd
commit
aa426268ee
@ -34,7 +34,7 @@ public class CustomControlsActivity extends BaseActivity
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
if (getIntent().getExtras().getBoolean("fromMainActivity", false)) {
|
||||
if (getIntent().getExtras() != null && getIntent().getExtras().getBoolean("fromMainActivity", false)) {
|
||||
// TODO translucent!
|
||||
// setTheme(androidx.appcompat.R.style.Theme_AppCompat_Translucent);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user