From c727f035909a4479f122ffd32de4fa36cd716bee Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 5 Aug 2020 13:21:07 +0200 Subject: [PATCH] Android: Properly restore state of SettingsActivityPresenter Fixes https://bugs.dolphin-emu.org/issues/10815 --- .../settings/ui/SettingsActivityPresenter.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsActivityPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsActivityPresenter.java index a66391d8bb..679d6b007a 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsActivityPresenter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsActivityPresenter.java @@ -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()