Only postpone transistions on Activity creation.
This is causing bugs (no UI is rendered) when the Activity is rotated.
This commit is contained in:
parent
80e1cc56b3
commit
25a08fc5cc
|
@ -220,11 +220,6 @@ public final class EmulationActivity extends AppCompatActivity
|
||||||
|
|
||||||
Java_GCAdapter.manager = (UsbManager) getSystemService(Context.USB_SERVICE);
|
Java_GCAdapter.manager = (UsbManager) getSystemService(Context.USB_SERVICE);
|
||||||
Java_WiimoteAdapter.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);
|
setContentView(R.layout.activity_emulation);
|
||||||
|
|
||||||
mImageView = (ImageView) findViewById(R.id.image_screenshot);
|
mImageView = (ImageView) findViewById(R.id.image_screenshot);
|
||||||
|
@ -240,6 +235,10 @@ public final class EmulationActivity extends AppCompatActivity
|
||||||
|
|
||||||
if (savedInstanceState == null)
|
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)
|
Picasso.with(this)
|
||||||
.load(mScreenPath)
|
.load(mScreenPath)
|
||||||
.noFade()
|
.noFade()
|
||||||
|
|
Loading…
Reference in New Issue