Skip to content
Commit 16b4b359 authored by Hiroaki.Kojima's avatar Hiroaki.Kojima Committed by Edward Savage-Jones
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 0d7e17eb
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