Aspsine / IRecyclerView

IRecyclerView is a custom RecyclerView that supports pull-to-refresh, pull-to-loadmore, customize refresh header and loadmore footer, add header views and footer views.
729 stars 146 forks source link

没有进行任何操作,rv会定时输出下面的日志。。。 #5

Closed jyh149129 closed 8 years ago

jyh149129 commented 8 years ago

1111 手机放着,没有进行任何操作,但却输出了很多图上显示的信息,有定时任务在跑吗?

Aspsine commented 8 years ago

没有定时任务。 如果没有掉用

iRecyclerView.setRefreshing(true);

而直接调用

iRecyclerView.setRefreshing(false);

这句log就会出现。

某些情景下,不需要iRecyclerView.setRefreshing(true);,但回调方法中需要调用iRecyclerView.setRefreshing(false); 来关闭用户手动刷新。

所以,不用在意这句log。不影响使用。下个版本中我可能会把这个log的level改成warning.而不是error.

jyh149129 commented 8 years ago

谢谢,显示不显示改log倒不是关键,关键是为什么app不进行任何操作也会一直循环输出这个log信息

Aspsine commented 8 years ago

检查代码中调用iRecyclerView.setRefreshing(false);的地方,看看是否有递归或者循环, 或者多次调用的操作。 这句log出现的的原理已经做了说明,若不主动调用,这句log是不会打印的。

jyh149129 commented 8 years ago

谢了,我会再仔细检查app代码调用这个的