From ce640e129dbd9b0077c65c9990cd0d664dba422a Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 27 Oct 2018 15:49:17 +0200 Subject: [PATCH] Android: Don't create a savestate when rotating --- .../dolphinemu/dolphinemu/activities/EmulationActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java index dc2574e2cc..b4050dfd81 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java @@ -340,7 +340,10 @@ public final class EmulationActivity extends AppCompatActivity @Override protected void onSaveInstanceState(Bundle outState) { - mEmulationFragment.saveTemporaryState(); + if (!isChangingConfigurations()) + { + mEmulationFragment.saveTemporaryState(); + } outState.putString(EXTRA_SELECTED_GAME, mPath); outState.putString(EXTRA_SELECTED_TITLE, mSelectedTitle); outState.putInt(EXTRA_PLATFORM, mPlatform);