mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
优化
This commit is contained in:
parent
e4a13eb486
commit
d4f511578c
@ -50,8 +50,7 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun areContentsTheSame(oldItem: BookSourcePart, newItem: BookSourcePart): Boolean {
|
override fun areContentsTheSame(oldItem: BookSourcePart, newItem: BookSourcePart): Boolean {
|
||||||
return !showSourceHost
|
return oldItem.bookSourceName == newItem.bookSourceName
|
||||||
&& oldItem.bookSourceName == newItem.bookSourceName
|
|
||||||
&& oldItem.bookSourceGroup == newItem.bookSourceGroup
|
&& oldItem.bookSourceGroup == newItem.bookSourceGroup
|
||||||
&& oldItem.enabled == newItem.enabled
|
&& oldItem.enabled == newItem.enabled
|
||||||
&& oldItem.enabledExplore == newItem.enabledExplore
|
&& oldItem.enabledExplore == newItem.enabledExplore
|
||||||
|
Loading…
Reference in New Issue
Block a user