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
1 file changed