Solve bug when update entry

This commit is contained in:
J-Jamet committed 2018-02-16 21:11:40 +01:00
1 parent 7155e25c1e
commit a1bf5f1e70
2 files changed
+2

No files matched your search

@@ -129,6 +129,7 @@ public class NodeAdapter extends RecyclerView.Adapter<BasicViewHolder> {
try {
notifyItemChanged(nodePositionToUpdate);
nodeSortedList.recalculatePositionOfItemAt(nodePositionToUpdate);
nodePositionToUpdate = -1;
} catch (IndexOutOfBoundsException e) {
Log.e(NodeAdapter.class.getName(), e.getMessage());
}