mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-08 01:10:23 +00:00
修复:通用设置中无法关闭转发应用通知开关
This commit is contained in:
parent
97eef3b23e
commit
23594bf96d
@ -327,6 +327,7 @@ class SettingsFragment : BaseFragment<FragmentSettingsBinding?>(), View.OnClickL
|
||||
|
||||
sbEnableAppNotify.setOnCheckedChangeListener { _: CompoundButton?, isChecked: Boolean ->
|
||||
layoutOptionalAction.visibility = if (isChecked) View.VISIBLE else View.GONE
|
||||
SettingUtils.enableAppNotify = isChecked
|
||||
if (isChecked) {
|
||||
//检查权限是否获取
|
||||
XXPermissions.with(this)
|
||||
|
Loading…
Reference in New Issue
Block a user