Skip to content
Commit 44f5d3f1 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Fix arguments capture in SoundEffectsHelper

The handler created for an async call must capture arguments of
the Message by value instead of capturing the instance of
Message by reference. Since Message objects are pooled for
efficiency, a possibility exists that the instance of Message is
reused later.

Bug: 160315111
Bug: 160965418
Test: atest android.media.cts.AudioManagerTest
Change-Id: I2c81b8fa9ae6653da2e6812668395d8fcd6bc6e9
Merged-In: I2c81b8fa9ae6653da2e6812668395d8fcd6bc6e9
(cherry picked from commit f8819552)
parent 7a7590dc
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