Avoid RecyclerView causing items to blink on update
Change-Id: Ic0bd70ec3f2a5e195cc0924c98c589f90e27afe9
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user