Skip to content

Commit

Permalink
Added try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
wongcain committed Aug 14, 2019
1 parent 0642119 commit f2d46ef
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ public void onCanceled(ViewDataBinding binding) {
}
int position = holder.getAdapterPosition();
if (position != RecyclerView.NO_POSITION) {
notifyItemChanged(position, DATA_INVALIDATION);
try {
notifyItemChanged(position, DATA_INVALIDATION);
} catch (IllegalStateException e) {
// noop - this shouldn't be happening
}
}
}
});
Expand Down

0 comments on commit f2d46ef

Please sign in to comment.