Describe the bug
UiMode not reset after calling ActivityScenarioConfigurator.forActivity().setUiMode().
So any other subsequent test (does not need to be Activity, could be Fragment, View, Composable...) keeps that UiMode if not overriden.
Environment
The setup in which the bug is reproducible:
API level: Any
AndroidUiTestingUtils version: All
Affected Component: ActivityScenarioConfigurator.forActivity() and ActivityScenarioForActivityRule
Buggy Configuration: UiMode
Expected behavior
The UiMode should be reset once the test finishes.
Describe the bug UiMode not reset after calling ActivityScenarioConfigurator.forActivity().setUiMode(). So any other subsequent test (does not need to be Activity, could be Fragment, View, Composable...) keeps that UiMode if not overriden.
Environment The setup in which the bug is reproducible:
Expected behavior The UiMode should be reset once the test finishes.