mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Revert "Fix dynamic language override for app context."
This reverts commit 75a19ada23f4fc0d5111fb74d234c7c6f48ba503.
This commit is contained in:
committed by
Greyson Parrelli
parent
78acc485fc
commit
35d0f1fc8c
@@ -28,14 +28,7 @@ public final class DynamicLanguageContextWrapper {
|
||||
return LocaleParser.findBestMatchingLocaleForLanguage(language);
|
||||
}
|
||||
|
||||
public static @NonNull Context getUpdatedApplicationContext(@NonNull Context base) {
|
||||
updateContext(base);
|
||||
|
||||
Configuration configuration = base.getResources().getConfiguration();
|
||||
return base.createConfigurationContext(configuration);
|
||||
}
|
||||
|
||||
private static void updateContext(@NonNull Context base) {
|
||||
public static void updateContext(@NonNull Context base) {
|
||||
Configuration config = base.getResources().getConfiguration();
|
||||
|
||||
prepareOverrideConfiguration(base, config);
|
||||
|
||||
Reference in New Issue
Block a user