https://kotlinlang.org logo
#android
Title
# android
e

Edgars Malahovskis

02/28/2024, 1:57 PM
Hi! Any advice on how to change Locale in unit tests? Since it is not java, there is no option to use Locale.setDefault()
not kotlin but kotlin colored 1
stackoverflow 1
👀 1
g

gildor

03/01/2024, 3:09 AM
It's not different, you can use Locale.setDefault on Android
There is also AppCompatDelegate.setApplicationLocales, but it needed only to update it on runtime to update all activities
2 Views