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

Skip to content
Commit dc6f3b25 authored by Hiroaki.Kojima's avatar Hiroaki.Kojima Committed by Luca Stefani
Browse files

Fix for recycling key events when sending global button broadcast

When broadcasting several global key/button events in a short time,
old key events can be overwritten by later ones as they refer to
the same object which is recycled. This can cause issues for
applications, where the expected key event is overwritten and
never received.

For each new broadcast create a copy of the key event and use
that in the broadcast intent.

Test: Send repeated key event(s) that are defined in 'global_keys'
      and verify they are received as expected.
Change-Id: I074827792387b66a0ccf15a00bceee01275fb16f
parent 9e0931e0
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