Android: Properly restore state of SettingsActivityPresenter

Fixes https://bugs.dolphin-emu.org/issues/10815
This commit is contained in:
JosJuice 2020-08-05 13:21:07 +02:00
parent 25ebc3c07c
commit c727f03590
1 changed files with 5 additions and 10 deletions

View File

@ -42,16 +42,11 @@ public final class SettingsActivityPresenter
public void onCreate(Bundle savedInstanceState, MenuTag menuTag, String gameId, Context context) public void onCreate(Bundle savedInstanceState, MenuTag menuTag, String gameId, Context context)
{ {
if (savedInstanceState == null) this.menuTag = menuTag;
{ this.gameId = gameId;
this.menuTag = menuTag; this.context = context;
this.gameId = gameId;
this.context = context; mShouldSave = savedInstanceState != null && savedInstanceState.getBoolean(KEY_SHOULD_SAVE);
}
else
{
mShouldSave = savedInstanceState.getBoolean(KEY_SHOULD_SAVE);
}
} }
public void onStart() public void onStart()