优化
This commit is contained in:
@@ -83,14 +83,14 @@ class MangaFooterSettingDialog : BaseDialogFragment(R.layout.dialog_manga_footer
|
||||
postEvent(EventBus.UP_MANGA_CONFIG, config)
|
||||
}
|
||||
|
||||
binding.rgFooter.check(if (config.hideFooter) R.id.rb_disable else R.id.rb_enable)
|
||||
binding.rgFooter.check(if (config.hideFooter) R.id.rb_hide else R.id.rb_show)
|
||||
binding.rgFooter.setOnCheckedChangeListener { _, checkedId ->
|
||||
when (checkedId) {
|
||||
R.id.rb_enable -> {
|
||||
R.id.rb_show -> {
|
||||
config.hideFooter = false
|
||||
}
|
||||
|
||||
R.id.rb_disable -> {
|
||||
R.id.rb_hide -> {
|
||||
config.hideFooter = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user