mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix rotations in Settings screen breaking everything
This commit is contained in:
@ -21,7 +21,6 @@ public final class SettingsActivity extends AppCompatActivity implements Setting
|
||||
{
|
||||
private SettingsActivityPresenter mPresenter = new SettingsActivityPresenter(this);
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
@ -53,6 +52,8 @@ public final class SettingsActivity extends AppCompatActivity implements Setting
|
||||
@Override
|
||||
protected void onSaveInstanceState(Bundle outState)
|
||||
{
|
||||
// Critical: If super method is not called, rotations will be busted.
|
||||
super.onSaveInstanceState(outState);
|
||||
mPresenter.saveState(outState);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user