mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 22:39:18 +01:00
Also set system locale with the Java API. Closes #978
This commit is contained in:
parent
8307daee63
commit
3e8ed8a171
@ -89,6 +89,8 @@ object LocaleHelper {
|
|||||||
val newConfig = updateConfigLocale(config, currentLocale!!)
|
val newConfig = updateConfigLocale(config, currentLocale!!)
|
||||||
val resources = app.resources
|
val resources = app.resources
|
||||||
resources.updateConfiguration(newConfig, resources.displayMetrics)
|
resources.updateConfiguration(newConfig, resources.displayMetrics)
|
||||||
|
|
||||||
|
Locale.setDefault(currentLocale)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user