File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
kotlin/com/simplemobiletools/smsmessenger/activities Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ android {
5656}
5757
5858dependencies {
59- implementation ' com.simplemobiletools:commons:5.32.20 '
59+ implementation ' com.simplemobiletools:commons:5.33.4 '
6060 implementation ' org.greenrobot:eventbus:3.2.0'
6161 implementation ' com.klinkerapps:android-smsmms:5.2.6'
6262 implementation ' com.github.tibbi:IndicatorFastScroll:08f512858a'
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class SettingsActivity : SimpleActivity() {
3030
3131 setupPurchaseThankYou()
3232 setupCustomizeColors()
33+ setupCustomizeNotifications()
3334 setupUseEnglish()
3435 setupManageBlockedNumbers()
3536 setupChangeDateTimeFormat()
@@ -66,6 +67,13 @@ class SettingsActivity : SimpleActivity() {
6667 }
6768 }
6869
70+ private fun setupCustomizeNotifications () {
71+ settings_customize_notifications_holder.beVisibleIf(isOreoPlus())
72+ settings_customize_notifications_holder.setOnClickListener {
73+ launchCustomizeNotificationsIntent()
74+ }
75+ }
76+
6977 private fun setupUseEnglish () {
7078 settings_use_english_holder.beVisibleIf(config.wasUseEnglishToggled || Locale .getDefault().language != " en" )
7179 settings_use_english.isChecked = config.useEnglish
Original file line number Diff line number Diff line change 5353
5454 </RelativeLayout >
5555
56+ <RelativeLayout
57+ android : id =" @+id/settings_customize_notifications_holder"
58+ android : layout_width =" match_parent"
59+ android : layout_height =" wrap_content"
60+ android : layout_marginTop =" @dimen/medium_margin"
61+ android : background =" ?attr/selectableItemBackground"
62+ android : paddingLeft =" @dimen/normal_margin"
63+ android : paddingTop =" @dimen/activity_margin"
64+ android : paddingRight =" @dimen/normal_margin"
65+ android : paddingBottom =" @dimen/activity_margin" >
66+
67+ <com .simplemobiletools.commons.views.MyTextView
68+ android : id =" @+id/settings_customize_notifications_label"
69+ android : layout_width =" wrap_content"
70+ android : layout_height =" wrap_content"
71+ android : layout_centerVertical =" true"
72+ android : paddingStart =" @dimen/medium_margin"
73+ android : text =" @string/customize_notifications" />
74+
75+ </RelativeLayout >
76+
5677 <RelativeLayout
5778 android : id =" @+id/settings_manage_blocked_numbers_holder"
5879 android : layout_width =" match_parent"
You can’t perform that action at this time.
0 commit comments