hide the General settings section if there is nothing visible in it

This commit is contained in:
tibbi 2022-09-25 17:21:55 +02:00
parent 3b59ad1a7f
commit c57ae52a4d
1 changed files with 7 additions and 0 deletions

View File

@ -84,6 +84,13 @@ class SettingsActivity : SimpleActivity() {
private fun setupLanguage() {
settings_language.text = Locale.getDefault().displayLanguage
settings_language_holder.beVisibleIf(isTiramisuPlus())
if (settings_purchase_thank_you_holder.isGone() && settings_use_english_holder.isGone() && settings_language_holder.isGone()) {
settings_general_settings_label.beGone()
} else {
settings_general_settings_label.beVisible()
}
settings_language_holder.setOnClickListener {
launchChangeAppLanguageIntent()
}