hide the General settings section if there is nothing visible in it
This commit is contained in:
parent
3b59ad1a7f
commit
c57ae52a4d
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue