mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-09-30 17:43:40 -04:00
Move setContentView to above because NullPointerException
This commit is contained in:
1 parent
e3b8f49cdd
commit
4ed0897ed7
1 file changed
+2
-3
@@ -21,7 +21,8 @@ public class CustomControlsActivity extends AppCompatActivity
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.control_mapping);
|
||||
|
||||
// Menu
|
||||
drawerLayout = (DrawerLayout) findViewById(R.id.customctrl_drawerlayout);
|
||||
|
||||
@@ -63,8 +64,6 @@ public class CustomControlsActivity extends AppCompatActivity
|
||||
ControlsLayout ctrlLayout = (ControlsLayout) findViewById(R.id.customctrl_controllayout);
|
||||
ctrlLayout.loadLayout(mCtrl);
|
||||
ctrlLayout.setCanMove(true);
|
||||
|
||||
setContentView(R.layout.control_mapping);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user