properly update a background if the Customize notifications button is hidden

This commit is contained in:
tibbi 2021-11-13 10:29:05 +01:00
parent a5dc5c1bb8
commit 9807f94480
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ class SettingsActivity : SimpleActivity() {
private fun setupCustomizeNotifications() {
settings_customize_notifications_holder.beVisibleIf(isOreoPlus())
if (settings_customize_notifications_holder.isGone()) {
settings_lock_screen_visibility_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme)
}
settings_customize_notifications_holder.setOnClickListener {
launchCustomizeNotificationsIntent()
}