Android: Properly restore state of SettingsActivityPresenter
Fixes https://bugs.dolphin-emu.org/issues/10815
This commit is contained in:
parent
25ebc3c07c
commit
c727f03590
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue