include magic method for setting local via Languages menu

I have found no explanation of what should work and why, but language
choosers seem to always include this line.  This also seems to fix the
bug:

closes #943
This commit is contained in:
Hans-Christoph Steiner 2017-05-01 21:24:20 +02:00
parent de1cc566a1
commit 2eaf00f9f1

View File

@ -136,6 +136,7 @@ public final class Languages {
locale = new Locale(language);
}
}
Locale.setDefault(locale);
final Resources resources = contextWrapper.getBaseContext().getResources();
Configuration config = resources.getConfiguration();