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

Skip to content
Commit 6a22e371 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Remove pending runnables in QSTileView#changeState

When the view is not attached to a window, the runnables accumulate in
the view mRunQueue. If the view is never attached (for example, view in
the third page of QS), many of these can accumulate.

To fix, create a special runnable such that all instances are equal to
each other (so we can remove them). We cannot use the handler methods to
tag the runnable with a token because the problem arises when the view
is not attached (and therefore, there's no handler).

Test: manual, tiles get updated
Test: manual, using heapdump, check that runnables don't accumulate
Fixes: 269252339
Change-Id: I5371a19e1daf7b68eb3b152c5aa964774a372ebd
parent 25be63a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment