commit | 10ffc783044afe038101c732edf336d5dcb9b51f | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Tue Feb 07 10:47:31 2017 -0800 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Tue Feb 07 10:47:31 2017 -0800 |
tree | db7d11d36bf71748e911591952273f29b68003b3 | |
parent | 49e57a2d9f1333edb74c80f2ccf6b59ca5ab353a [diff] |
Audio player delayed start: don't throw exception When the framework sets a delayed start on a PlayerBase instance (e.g. MediaPlayer or AudioTrack), catch the IllegalStateException that can be thrown if the player's state has changed by the time the actual start command gets executed. Test: generate notifications played by NotificationPlayer Bug 35019197 Change-Id: I51fd0305bc83b34e33fbcf9331f55627d32702f3