commit | f8819552bbc46fd73bc0605ce1fb1b120bac2fa0 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Sat Jul 11 01:11:37 2020 +0000 |
committer | Mikhail Naganov <mnaganov@google.com> | Sat Jul 11 01:11:37 2020 +0000 |
tree | 92b217164eaf9db625d6f11e005329ee8157ebf5 | |
parent | 99abd5c15daa606d980998272f4a371a3b8ae916 [diff] |
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