android-test
android-test copied to clipboard
Skip launching an empty activity on ActivityScenario#finish for API >= 27
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