mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #3503 from sigmabeta/android-rotation-bugfix
[Android] Don't show screenshot on rotation events
This commit is contained in:
commit
d5d6226fbb
@ -138,6 +138,8 @@ public final class EmulationActivity extends AppCompatActivity
|
||||
mScreenPath = gameToEmulate.getStringExtra("ScreenPath");
|
||||
mPosition = gameToEmulate.getIntExtra("GridPosition", -1);
|
||||
|
||||
if (savedInstanceState == null)
|
||||
{
|
||||
Picasso.with(this)
|
||||
.load(mScreenPath)
|
||||
.noFade()
|
||||
@ -180,8 +182,6 @@ public final class EmulationActivity extends AppCompatActivity
|
||||
}
|
||||
});
|
||||
|
||||
if (savedInstanceState == null)
|
||||
{
|
||||
// Instantiate an EmulationFragment.
|
||||
EmulationFragment emulationFragment = EmulationFragment.newInstance(path);
|
||||
|
||||
@ -190,6 +190,11 @@ public final class EmulationActivity extends AppCompatActivity
|
||||
.add(R.id.frame_emulation_fragment, emulationFragment, EmulationFragment.FRAGMENT_TAG)
|
||||
.commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
mImageView.setVisibility(View.GONE);
|
||||
mFrameEmulation.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
if (mDeviceHasTouchScreen)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user