mirror of https://github.com/readrops/Readrops.git
Fix feed notification switch enabled on item view click with account notifications disabled
This commit is contained in:
parent
b103ed3a01
commit
31baff2772
|
@ -29,7 +29,7 @@ class NotificationPermissionAdapter(var enableAll: Boolean, val listener: (feed:
|
|||
|
||||
holder.binding.notificationSwitch.isEnabled = enableAll
|
||||
holder.binding.notificationSwitch.setOnCheckedChangeListener { _, _ -> listener(feed) }
|
||||
holder.itemView.setOnClickListener { listener(feed) }
|
||||
holder.itemView.setOnClickListener { if (enableAll) listener(feed) }
|
||||
|
||||
GlideApp.with(holder.itemView.context)
|
||||
.load(feed.iconUrl)
|
||||
|
|
Loading…
Reference in New Issue