Skip to content

Commit

Permalink
修复Inconsistency detected. Invalid view holder adapter positionViewHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
YiuChoi committed Apr 5, 2016
1 parent 115445b commit 9915fc6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ public void onDestroyView() {
public void onRefresh() {
currentOffset = 0;
guokrHotItems.clear();
//2016-04-05修复Inconsistency detected. Invalid view holder adapter positionViewHolder
guokrAdapter.notifyDataSetChanged();
getGuokrHot(currentOffset);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ public void onDestroyView() {
@Override
public void onRefresh() {
itHomeItems.clear();
//2016-04-05修复Inconsistency detected. Invalid view holder adapter positionViewHolder
itAdapter.notifyDataSetChanged();
getIthomeNews();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public void onDestroyView() {
public void onRefresh() {
currentPage = 1;
gankVideoItems.clear();
//2016-04-05修复Inconsistency detected. Invalid view holder adapter positionViewHolder
videoAdapter.notifyDataSetChanged();
getVideo(currentPage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public void onDestroyView() {
public void onRefresh() {
currentPage = 1;
weixinNewses.clear();
//2016-04-05修复Inconsistency detected. Invalid view holder adapter positionViewHolder
weixinAdapter.notifyDataSetChanged();
getWeixinNews(currentPage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ public void onNext(ZhihuDaily zhihuDaily) {
}
cacheUtil.put(CacheUtil.ZHIHU,gson.toJson(zhihuDaily));
currentLoadedDate = zhihuDaily.getDate();
//2016-04-05修复Inconsistency detected. Invalid view holder adapter positionViewHolder
zhihuAdapter.notifyDataSetChanged();
zhihuStories.addAll(zhihuDaily.getStories());
zhihuAdapter.notifyDataSetChanged();
}
Expand Down

0 comments on commit 9915fc6

Please sign in to comment.