small viewholder bind optimization
This commit is contained in:
parent
627608e148
commit
dff8fd1703
|
|
@ -53,6 +53,7 @@ public class BindableViewHolder extends RecyclerView.ViewHolder implements UiBin
|
|||
.switchMap(attached -> attached
|
||||
? Observable.just(true)
|
||||
: Observable.timer(DETACH_DELAY, TimeUnit.MILLISECONDS).map(ignored -> false))
|
||||
.distinctUntilChanged()
|
||||
.replay(1)
|
||||
.refCount();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue