Avoid RecyclerView causing items to blink on update

Change-Id: Ic0bd70ec3f2a5e195cc0924c98c589f90e27afe9
This commit is contained in:
Jason Monk
2015-12-16 16:43:02 -05:00
parent b1dd5c9959
commit fa4813783f

View File

@@ -91,12 +91,7 @@ public class DashboardAdapter extends RecyclerView.Adapter<DashboardAdapter.Dash
}
public void notifyChanged(DashboardTile tile) {
for (int i = 0; i < mItems.size(); i++) {
if (mItems.get(i) == tile) {
notifyItemChanged(i);
return;
}
}
notifyDataSetChanged();
}
public void setShowingAll(boolean showingAll) {