I'm using Android L transitions passing an ActivityOptions
bundle in intent.
How can I reproduce the animation on the same intent with TaskStackBuilder
?
This is my current working method with a single Intent
:
startActivity(myIntent, ActivityOptions.makeSceneTransitionAnimation(this).toBundle());
This is my try with TaskStackBuilder
:
TaskStackBuilder builder = TaskStackBuilder.create(this);
builder.addNextIntentWithParentStack(myIntent);
builder.startActivities(ActivityOptions.makeSceneTransitionAnimation(this).toBundle());
But the animation creates a strange effect, not the same one of the "single-intent" version.
I also tried with:
builder.addNextIntent(myIntent);
instead of:
builder.addNextIntentWithParentStack(myIntent);