android-test icon indicating copy to clipboard operation
android-test copied to clipboard

Skip launching an empty activity on ActivityScenario#finish for API >= 27

Open copybara-androidxtest opened this issue 6 years ago • 0 comments

Skip launching an empty activity on ActivityScenario#finish for API >= 27

ActivityScenario would previously launch an empty activity twice during finish, as a workaround to ensure the Android framework invoked onStop and onDestroy.

Testing showed this workaround does not seem to be needed on APIs >= 27, saving a few hundred ms.

Fix for #411

copybara-androidxtest avatar Feb 24 '20 20:02 copybara-androidxtest