mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 10:21:53 +00:00
Added simple ui blocks for whenever connection drops out
This commit is contained in:
committed by
John Wu
parent
4ef19d17da
commit
085ede6d93
@@ -215,4 +215,9 @@ fun setScrollListener(view: RecyclerView, listener: InverseBindingListener) {
|
||||
@InverseBindingAdapter(attribute = "scrollPosition", event = "recyclerScrollEvent")
|
||||
fun getScrollPosition(view: RecyclerView) = (view.layoutManager as? LinearLayoutManager)
|
||||
?.findLastCompletelyVisibleItemPosition()
|
||||
?: -1
|
||||
?: -1
|
||||
|
||||
@BindingAdapter("isEnabled")
|
||||
fun setEnabled(view: View, isEnabled: Boolean) {
|
||||
view.isEnabled = isEnabled
|
||||
}
|
||||
Reference in New Issue
Block a user