优化:
增加了防抖的时间800毫秒
This commit is contained in:
parent
5f2fdd7052
commit
3defb6a335
@ -24,7 +24,7 @@ public class ViewClicksAntiShake {
|
||||
*/
|
||||
public static void clicksAntiShake(View view, ViewClicksCallBack callBack) {
|
||||
RxView.clicks(view)
|
||||
.throttleFirst(500, TimeUnit.MILLISECONDS)
|
||||
.throttleFirst(800, TimeUnit.MILLISECONDS)
|
||||
.subscribe(new Observer<Unit>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
Loading…
Reference in New Issue
Block a user