Skip to content

Instantly share code, notes, and snippets.

@idanatz
Last active March 29, 2020 15:00
Show Gist options
  • Save idanatz/73001f662a2d04e747b1743c499980a3 to your computer and use it in GitHub Desktop.
Save idanatz/73001f662a2d04e747b1743c499980a3 to your computer and use it in GitHub Desktop.
Runtime Locale Changing Blog Post
class App : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(RuntimeLocaleChanger.wrapContext(base))
}
}
abstract class BaseActivity : AppCompatActivity() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(RuntimeLocaleChanger.wrapContext(base))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment