Created
March 2, 2022 03:55
-
-
Save heitorpaceli/60ad29a476fc34539fa6013aac1b0838 to your computer and use it in GitHub Desktop.
updateActivityTitle
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
private fun updateActivityTitle() { | |
val localeManager = getSystemService(LocaleManager::class.java) | |
val appLocales = localeManager.applicationLocales | |
title = if (appLocales.isEmpty) { | |
getString(R.string.system_locale) | |
} else { | |
appLocales.get(0).displayName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment