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

Commit b0176c22 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[Memory Improvement] Drop non existing items in mAdded lists

New items are added to mAddedItems whenever setData is called. This can happen regardless of whether messaging layouts are attached to the window or not.
With this solution, we want to align mAddedItems and mGroups by removing the items in mAddedItems that are no longer in mGroups. This will stop mAddedItems uncontrolled growth and potentially fix the memory leak issue.

Bug: 378101061
Bug: 391677602
Test: Presubmit
Flag: android.widget.flags.drop_non_existing_messages
Change-Id: Ic9c1cb2f9cb01608941a4b16ff01a79d816c334d
parent 76f8854f
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