format code
This commit is contained in:
parent
a1a004299b
commit
bfe424686b
1 changed files with 2 additions and 4 deletions
|
@ -37,11 +37,9 @@ class ManageBlockedNumbersActivity : BaseSimpleActivity(), RefreshRecyclerViewLi
|
|||
updateTextColors(manage_blocked_numbers_wrapper)
|
||||
updatePlaceholderTexts()
|
||||
|
||||
val switchTitleRes = if (baseConfig.appId.startsWith("com.simplemobiletools.dialer")) R.string.block_unknown_calls else R.string.block_unknown_messages
|
||||
block_unknown.apply {
|
||||
setText(if (baseConfig.appId.startsWith("com.simplemobiletools.dialer"))
|
||||
R.string.block_unknown_calls
|
||||
else
|
||||
R.string.block_unknown_messages)
|
||||
setText(switchTitleRes)
|
||||
isChecked = baseConfig.blockUnknownNumbers
|
||||
setOnCheckedChangeListener { _, isChecked ->
|
||||
baseConfig.blockUnknownNumbers = isChecked
|
||||
|
|
Loading…
Reference in a new issue