Fix rotations in Settings screen breaking everything

This commit is contained in:
sigmabeta 2016-01-25 08:47:08 -05:00
parent bdfcaa0e00
commit 96e7f774ae
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}