mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 22:07:39 +00:00
851ee81486
Before this commit, the loader removed messages _after_ it updated the list. Coincidentally the list updating mechanism is asynchronous to some extent and so slower devices might've had the message removed after changes have been dispatched which confused the recyclerview and caused the crash. Now, the loader is stripped of the responsibility update the list holding helper messages. The responsibility is for the user itself to notify listeners and then clear the helper list. This should hopefully delay the removal to the point where choreographer had enough time to traverse through the hierarchy. Stupid recycler view / layout managers. Literally unnecessary crash.