• Viktor De Pasquale's avatar
    Updated removing of "empty list" messages · 851ee814
    Viktor De Pasquale authored
    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.
    851ee814
ModuleViewModel.kt 11.3 KB