commit | 5cd7d7f7a4525d8c277f307ccc79dbde3af3fa08 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Thu Mar 16 18:38:50 2017 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Thu Mar 16 18:38:50 2017 -0700 |
tree | a1021654379907592ae72525e6c9001ba256f460 | |
parent | 538d5a3d079aa60a6cf84befdda301469ab0b6a5 [diff] |
NotificationPlayer: fix error listener, sync in playback thread The error and completion listeners should be set before MediaPlayer.prepare() is called, in case of an error during prepare. Move the sleep to synchronize the playback of the notification and the ducking from the MediaPlayer to the playback thread. Test: play a notification during media playback Bug: 35855841 Change-Id: I42f01f485f533c1cc84b9d927f0dc594cdb7ec8f