Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
updateActivityTitle
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