Only postpone transistions on Activity creation.

This is causing bugs (no UI is rendered) when the Activity is rotated.
This commit is contained in:
Mike Harris 2017-10-07 22:14:37 -07:00
parent 80e1cc56b3
commit 25a08fc5cc
1 changed files with 4 additions and 5 deletions

View File

@ -220,11 +220,6 @@ public final class EmulationActivity extends AppCompatActivity
Java_GCAdapter.manager = (UsbManager) getSystemService(Context.USB_SERVICE);
Java_WiimoteAdapter.manager = (UsbManager) getSystemService(Context.USB_SERVICE);
// Picasso will take a while to load these big-ass screenshots. So don't run
// the animation until we say so.
postponeEnterTransition();
setContentView(R.layout.activity_emulation);
mImageView = (ImageView) findViewById(R.id.image_screenshot);
@ -240,6 +235,10 @@ public final class EmulationActivity extends AppCompatActivity
if (savedInstanceState == null)
{
// Picasso will take a while to load these big-ass screenshots. So don't run
// the animation until we say so.
postponeEnterTransition();
Picasso.with(this)
.load(mScreenPath)
.noFade()