commit | c83c938997e52b214d04c64d4379f0e0d68b0123 | [log] [tgz] |
---|---|---|
author | Ian Lake <ilake@google.com> | Sun Jul 12 12:50:02 2015 -0700 |
committer | Ian Lake <ilake@google.com> | Sun Jul 12 15:20:14 2015 -0700 |
tree | 1ba4a6b8a6e2276e4865e5e395f89edf186ce111 | |
parent | cdbdcb29b4a4e3bf1553f824902562cee3fcb723 [diff] |
MediaSessionCompat: Use Media Button Component on API 21+ If a non-null Media Button Receiver ComponentName is passed to MediaSessionCompat but a null Media Button PendingIntent, convert the ComponentName into a PendingIntent such that it can be used by API 21+'s MediaSession.setMediaButtonReceiver(). This logic matches what is currently done for API 18-19 devices. BUG: 22432215 Change-Id: I63d655882394af250c0f08307c80a3eb9f391c8e