mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-03 01:17:41 +08: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 ->
|
sbEnableAppNotify.setOnCheckedChangeListener { _: CompoundButton?, isChecked: Boolean ->
|
||||||
layoutOptionalAction.visibility = if (isChecked) View.VISIBLE else View.GONE
|
layoutOptionalAction.visibility = if (isChecked) View.VISIBLE else View.GONE
|
||||||
|
SettingUtils.enableAppNotify = isChecked
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
//检查权限是否获取
|
//检查权限是否获取
|
||||||
XXPermissions.with(this)
|
XXPermissions.with(this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user