commit | fb798085afa118749864d1fae0506851a1390b87 | [log] [tgz] |
---|---|---|
author | Marie Janssen <jamuraa@google.com> | Tue Jul 12 07:53:54 2016 -0700 |
committer | gitbuildkicker <android-build@google.com> | Fri Jul 15 19:44:50 2016 -0700 |
tree | bccf8c42094c507121a873de0b5203e871d175c2 | |
parent | bd91e1f260f557ca3c2934b9c1e788dbbac3a3dd [diff] |
Fix AVRCP crash, position and state tracking When the MediaController goes away (media stops) a NPE would cause a crash. Initialize the position so that an initial notification gets sent when position is requested, send it when the music is paused, and send play state whenever the app sends us a play state update. Bug: 30039744 Bug: 29416450 Change-Id: I44397b3dc40d328fa75a2c15875fad298a5090dd (cherry picked from commit 84d3f084d4d1a65eb7a481e5a7fe4a6ac827be7b)