mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 14:15:44 +03:00
reset local to "en"
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
6392255735
commit
ea4c357f60
5 changed files with 4 additions and 3 deletions
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 9 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
|
@ -415,10 +415,11 @@ public abstract class AbstractIT {
|
|||
}
|
||||
|
||||
protected void resetLocale() {
|
||||
Locale locale = new Locale("en");
|
||||
Resources resources = InstrumentationRegistry.getInstrumentation().getTargetContext().getResources();
|
||||
Configuration defaultConfig = resources.getConfiguration();
|
||||
defaultConfig.setLocale(Locale.getDefault());
|
||||
resources.updateConfiguration(defaultConfig, null);
|
||||
Configuration config = resources.getConfiguration();
|
||||
config.setLocale(locale);
|
||||
resources.updateConfiguration(config, null);
|
||||
}
|
||||
|
||||
protected void screenshot(View view) {
|
||||
|
|
Loading…
Reference in a new issue