The "Start activity with launch bounds" button, which uses ActivityOptions.setLaunchBounds(), does not launch the activity in a new task. Because the activity launches in the same task as the activity it was launched from, it cannot apply new boundaries to itself.
This can be fixed by adding intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); to the intent object at MainActivity.java:96.
The "Start activity with launch bounds" button, which uses ActivityOptions.setLaunchBounds(), does not launch the activity in a new task. Because the activity launches in the same task as the activity it was launched from, it cannot apply new boundaries to itself.
This can be fixed by adding
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
to theintent
object at MainActivity.java:96.