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

Skip to content
Commit a5d0d2c7 authored by Bryce Lee's avatar Bryce Lee
Browse files

Clear active sessions when stopping touch monitoring.

It is currently possible to stop TouchMonitor even if there are active
touch sessions. This is needed when there is a lifecycle change and
touch handling must be disabled. While the sessions are currently
notified and cleaned up, TouchMonitor fails to clear the active session
references. Therefore, future touch events are sent to essentially
empty shells of past sessions.

This changelist addresses this issue by clearing the list of active
sessions after each has been notified.

Fixes: 348656793
Test: atest TouchMonitorTest#testSessionResetOnLifecycle
Flag: EXEMPT bugfix
Change-Id: If8abd912abdd177932c94fdd84f5e27ac0a53bf3
parent d9227e90
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