From bb2ee279cddbfd6359e45be63c8d7a5a3018d85c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 16 Nov 2021 22:09:40 +0100 Subject: [PATCH] Android: Properly set game settings title when navigating backwards --- .../settings/ui/SettingsFragmentPresenter.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java index a5660d599d..bc23b2042a 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsFragmentPresenter.java @@ -93,6 +93,12 @@ public final class SettingsFragmentPresenter public void onViewCreated(MenuTag menuTag, Settings settings) { this.mMenuTag = menuTag; + + if (!TextUtils.isEmpty(mGameID)) + { + mView.getActivity().setTitle(mContext.getString(R.string.game_settings, mGameID)); + } + setSettings(settings); } @@ -122,10 +128,6 @@ public final class SettingsFragmentPresenter private void loadSettingsList() { - if (!TextUtils.isEmpty(mGameID)) - { - mView.getActivity().setTitle(mContext.getString(R.string.game_settings, mGameID)); - } ArrayList sl = new ArrayList<>(); switch (mMenuTag)