yanzhenjie / Album

:watermelon: Album and Gallery for Android platform.
https://github.com/yanzhenjie/Album
Apache License 2.0
2.5k stars 507 forks source link

Fix crash issue #221,#250; #251

Open lixiangthinker opened 5 years ago

lixiangthinker commented 5 years ago
mCheckedList could be accessed in 2 threads, AlbumActivity and GalleryActivity(onPreviewChanged). AlbumActivity calls complete() and start new thread to generate thumbnail, while galleryactivity uncheck some file and change mCheckedList, then will crash.
This change will not allow changing mCheckedList while thumbnail task is running.