Hi. Has anyone dealt with this exception when using activity transitions?

My setup is I've got two activities, main and sub. I start the sub 
with ActivityCompat.startActivity(MainActivity.this, intent, 
options.toBundle()); with some shared elements from the main's viewpager. 
>From time to time, the transition doesn't happen and I get this exception, 
with a blank sub.

Searching on stackoverflow.com did not yield anything useful. Checking the 
Android 
source 
<http://androidxref.com/5.1.1_r6/xref/frameworks/base/core/java/android/app/ActivityThread.java#3347>
 shows 
that in order for this exception to be thrown, "keepShown" must be false 
and "r.stopped" must be true. I'm not much of an expert, but having 
followed the code there I've come to the conclusion that r.stopped isn't 
set to false when this call happens, so somehow something is delaying a 
"r.stopped = false" statement. I'm having a hard time figuring out what's 
causing it. Can anyone shed some light on this?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d68ee5f7-2829-425d-b6a4-c76445a18d67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to