Android: Properly set game settings title when navigating backwards
This commit is contained in:
parent
b919557e25
commit
bb2ee279cd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue