Notify change of single item instead of the whole data set, disable item animation
This commit is contained in:
1 parent
c7bf9509e3
commit
34632342fc
1 file changed
+2
-1
@@ -78,6 +78,7 @@ public class FilterActivity extends ToolbarActivity {
|
||||
mRecyclerView.setClipChildren(false);
|
||||
mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
|
||||
mRecyclerView.hasFixedSize();
|
||||
mRecyclerView.setItemAnimator(null);
|
||||
|
||||
updateView(false);
|
||||
}
|
||||
@@ -266,7 +267,7 @@ public class FilterActivity extends ToolbarActivity {
|
||||
mFilterList.trigger(filter);
|
||||
|
||||
//for updating delete line on filter text
|
||||
mAdapter.notifyDataSetChanged();
|
||||
mAdapter.notifyItemChanged(getAdapterPosition());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user