Skip to content

最新版的isRefreshing()接口在下拉刷新后一直显示为true,不能用于判断刷新状态。 #142

Description

@duxgwork

我对比最新版本1.0.4和旧版本1.0.2的isRefreshing(),旧版本接口实现如下(新版本少了mLoading做与运算):
public boolean isRefreshing() {
return SwipeToLoadLayout.STATUS.isRefreshing(this.mStatus) && this.mLoading;
}

在我的项目中需要判断下拉刷新的状态,我是使用作者暴露出来的isRefreshing()接口进行判断的,刷新过程中isRefreshing()返回值为true,反之为false。版本1.0.2也是没问题的。但就在版本1.0.3后,只要下拉刷新完成,isRefreshing()返回值一直为true,即使我先设置swipeToLoadLayout.setRefreshing(false),再取值isRefreshing仍然返回true。
我看了版本1.0.3和版本1.0.2的代码逻辑变动较大,是作者引入bug了还是其他原因,希望解答,谢谢。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions