mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-19 06:45:39 +00:00
Android: Stop activity recreate when theme is set
Hopefully will fix those crashes on startup.
This commit is contained in:
parent
237c0a01b6
commit
4c3d2cd3fe
|
@ -137,14 +137,15 @@ public class MainActivity extends AppCompatActivity {
|
||||||
.beginTransaction()
|
.beginTransaction()
|
||||||
.setReorderingAllowed(true).
|
.setReorderingAllowed(true).
|
||||||
replace(R.id.content_fragment, listFragment)
|
replace(R.id.content_fragment, listFragment)
|
||||||
.commit();
|
.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
|
Loading…
Reference in a new issue