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

View File

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