Merge pull request #7521 from JosJuice/android-rotate-savestate
Android: Don't create a savestate when rotating
This commit is contained in:
commit
dd922660c9
|
@ -340,7 +340,10 @@ public final class EmulationActivity extends AppCompatActivity
|
||||||
@Override
|
@Override
|
||||||
protected void onSaveInstanceState(Bundle outState)
|
protected void onSaveInstanceState(Bundle outState)
|
||||||
{
|
{
|
||||||
mEmulationFragment.saveTemporaryState();
|
if (!isChangingConfigurations())
|
||||||
|
{
|
||||||
|
mEmulationFragment.saveTemporaryState();
|
||||||
|
}
|
||||||
outState.putString(EXTRA_SELECTED_GAME, mPath);
|
outState.putString(EXTRA_SELECTED_GAME, mPath);
|
||||||
outState.putString(EXTRA_SELECTED_TITLE, mSelectedTitle);
|
outState.putString(EXTRA_SELECTED_TITLE, mSelectedTitle);
|
||||||
outState.putInt(EXTRA_PLATFORM, mPlatform);
|
outState.putInt(EXTRA_PLATFORM, mPlatform);
|
||||||
|
|
Loading…
Reference in New Issue