Describe the bug
LocaleTestRule does not reset correctly. It happens, for example, if the app has no in-app language set. After the test execution, the System Language is set as in-app locale pref instead.
This may affect the rest of the tests, since the in-app local has preference over the System Locale.
Environment
The setup in which the bug is reproducible:
Device or Emulator: An<
API level: Any
AndroidUiTestingUtils version: 1.2.1
Affected Component: LocaleTestRule
Buggy Configuration: In-app Locale pref
Expected behavior
The in-app locale is properly reset
Describe the bug LocaleTestRule does not reset correctly. It happens, for example, if the app has no in-app language set. After the test execution, the System Language is set as in-app locale pref instead. This may affect the rest of the tests, since the in-app local has preference over the System Locale.
Environment The setup in which the bug is reproducible:
Expected behavior The in-app locale is properly reset