Fix crash when multiple bookmarks are being dragged
This CL tries to fix: 1. when one bookmark is being dragged while another dragging animation is on the progress, getAdapterPosition may return -1. 2. calling notifyDataSetChanged when recyclerview is computing or scrolling will also throw an error. Bug: 1002856 Change-Id: I2c22f7ad58c68245cc675b6cccbeb644bd1fbc5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1799469 Commit-Queue: Lijin Shen <lazzzis@google.com> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#696612}
Showing
Please register or sign in to comment