mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-20 01:27:02 -04:00
Custom controls: add a null check to fixing crash
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user