Make activity authoritative for contentView and implement a basic Settings skeleton
This commit is contained in:
@@ -18,6 +18,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
app = new AppController(this);
|
||||
setContentView(R.layout.view_main);
|
||||
app.init();
|
||||
}
|
||||
|
||||
@@ -28,4 +29,11 @@ public class MainActivity extends AppCompatActivity {
|
||||
public void logcat(String log) {
|
||||
Log.i("LogcatGeneric", log);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (!app.getUi().back()) {
|
||||
super.onBackPressed(); // exits app
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user