Merge pull request #10225 from JosJuice/android-game-settings-title

Android: Properly set game settings title when navigating backwards
This commit is contained in:
Mai M 2021-11-16 23:26:38 -05:00 committed by GitHub
commit b14d982d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<SettingsItem> sl = new ArrayList<>();
switch (mMenuTag)