From 9807f9448062337f40ed6a8b75725153c6ab5d76 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 13 Nov 2021 10:29:05 +0100 Subject: [PATCH] properly update a background if the Customize notifications button is hidden --- .../smsmessenger/activities/SettingsActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt index a7b1e8e0..e965940b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt @@ -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() }