fixed notification adapter

This commit is contained in:
X1nto 2021-02-04 11:27:55 +04:00
parent ed39a2ebf6
commit a3fd2111d4
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class GetNotifAdapter(private val context: Context) : RecyclerView.Adapter<GetNo
setTitle(app.switchTitle)
setDefaultValue(true)
with (prefs) {
setChecked(getBoolean(app.key.substringBefore("_") + "_enabled", true) && getBoolean(app.key, true))
setChecked(getBoolean( "enable_" + app.key.substringBefore("_"), true) && getBoolean(app.key, true))
}
}
}