Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6917b09 authored by Evan Chen's avatar Evan Chen
Browse files

Fix RecyclerView crash in device discovery list

Resolves an IndexOutOfBoundsException when updating the list of
discovered companion devices.

The adapter was using a shared, mutable list reference, causing its
internal state to be out of sync.

The fix is to have the discovery service create a new list snapshot on
each update and for the adapter to correctly calculate diffs for
notifyItemRangeInserted().

Test: CTS
Fix: 425323417
Flag: EXEMPT bugfix
Change-Id: I90a445b163ac1c02d762ad273e5250b21167180e
parent 71348c49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment