Fix feed notification switch enabled on item view click with account notifications disabled

This commit is contained in:
Shinokuni 2020-03-24 21:02:47 +01:00
parent b103ed3a01
commit 31baff2772
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class NotificationPermissionAdapter(var enableAll: Boolean, val listener: (feed:
holder.binding.notificationSwitch.isEnabled = enableAll holder.binding.notificationSwitch.isEnabled = enableAll
holder.binding.notificationSwitch.setOnCheckedChangeListener { _, _ -> listener(feed) } holder.binding.notificationSwitch.setOnCheckedChangeListener { _, _ -> listener(feed) }
holder.itemView.setOnClickListener { listener(feed) } holder.itemView.setOnClickListener { if (enableAll) listener(feed) }
GlideApp.with(holder.itemView.context) GlideApp.with(holder.itemView.context)
.load(feed.iconUrl) .load(feed.iconUrl)