Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
codeestX committed Dec 5, 2016
1 parent 127e8d4 commit 7472cee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ public void setHotFlag(boolean hotFlag) {
this.mHotFlag = hotFlag;
}

public boolean getHotFlag() {
return mHotFlag;
}

public interface OnHotCloseListener {
void onClose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
rvGoldList.addItemDecoration(mDecoration);
if (!mAdapter.getHotFlag()) {
rvGoldList.addItemDecoration(mDecoration);
}
mAdapter.setHotFlag(true);
mPresenter.getGoldData(mType);
}
Expand Down

0 comments on commit 7472cee

Please sign in to comment.