mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
Merge pull request #10344 from JosJuice/android-no-retain-instance
Android: Remove all setRetainInstance calls
This commit is contained in:
commit
500e02dcfb
@ -100,7 +100,6 @@ public final class SettingsFragment extends Fragment implements SettingsFragment
|
|||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
setRetainInstance(true);
|
|
||||||
Bundle args = getArguments();
|
Bundle args = getArguments();
|
||||||
MenuTag menuTag = (MenuTag) args.getSerializable(ARGUMENT_MENU_TAG);
|
MenuTag menuTag = (MenuTag) args.getSerializable(ARGUMENT_MENU_TAG);
|
||||||
String gameId = getArguments().getString(ARGUMENT_GAME_ID);
|
String gameId = getArguments().getString(ARGUMENT_GAME_ID);
|
||||||
|
@ -75,9 +75,6 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
|||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
// So this fragment doesn't restart on configuration changes; i.e. rotation.
|
|
||||||
setRetainInstance(true);
|
|
||||||
|
|
||||||
mGamePaths = getArguments().getStringArray(KEY_GAMEPATHS);
|
mGamePaths = getArguments().getStringArray(KEY_GAMEPATHS);
|
||||||
mRiivolution = getArguments().getBoolean(KEY_RIIVOLUTION);
|
mRiivolution = getArguments().getBoolean(KEY_RIIVOLUTION);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user