Skip to content

Commit ea4c357

Browse files
reset local to "en"
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 6392255 commit ea4c357

5 files changed

Lines changed: 4 additions & 3 deletions
7.36 KB
Loading
8.98 KB
Loading
6.81 KB
Loading
8.39 KB
Loading

app/src/androidTest/java/com/owncloud/android/AbstractIT.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,11 @@ protected void enableRTL() {
415415
}
416416

417417
protected void resetLocale() {
418+
Locale locale = new Locale("en");
418419
Resources resources = InstrumentationRegistry.getInstrumentation().getTargetContext().getResources();
419-
Configuration defaultConfig = resources.getConfiguration();
420-
defaultConfig.setLocale(Locale.getDefault());
421-
resources.updateConfiguration(defaultConfig, null);
420+
Configuration config = resources.getConfiguration();
421+
config.setLocale(locale);
422+
resources.updateConfiguration(config, null);
422423
}
423424

424425
protected void screenshot(View view) {

0 commit comments

Comments
 (0)