You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Removed intermediate loading item
- adding intermediate items causes recyclerview renderer to display artifacts (copies of some views)
This commit is contained in:
@@ -150,19 +150,6 @@ class ModuleItem(val item: Module) : ObservableItem<ModuleItem>(), Observable {
|
||||
|
||||
}
|
||||
|
||||
object LoadingItem : ComparableRvItem<LoadingItem>() {
|
||||
override val layoutRes = R.layout.item_loading
|
||||
|
||||
override fun onBindingBound(binding: ViewDataBinding) {
|
||||
super.onBindingBound(binding)
|
||||
val params = binding.root.layoutParams as? StaggeredGridLayoutManager.LayoutParams ?: return
|
||||
params.isFullSpan = true
|
||||
}
|
||||
|
||||
override fun contentSameAs(other: LoadingItem) = this == other
|
||||
override fun itemSameAs(other: LoadingItem) = this === other
|
||||
}
|
||||
|
||||
abstract class ObservableItem<T> : ComparableRvItem<T>(), Observable {
|
||||
|
||||
private val list = PropertyChangeRegistry()
|
||||
|
||||
Reference in New Issue
Block a user