Last active
March 29, 2020 15:00
-
-
Save idanatz/73001f662a2d04e747b1743c499980a3 to your computer and use it in GitHub Desktop.
Runtime Locale Changing Blog Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App : Application() { | |
override fun attachBaseContext(base: Context) { | |
super.attachBaseContext(RuntimeLocaleChanger.wrapContext(base)) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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