Ensure MediaSessionCompat handles null metadata without NPE API 14-19
Right now, if you pass in null MediaMetadataCompat or a null Bundle within that metadata, MediaSessionCompatApi14 and MediaSessionCompatApi19 will NPE rather than clearing out all metadata as expected. Adds simple null checks to ensure that this works as expected.This is particularly important to handle the case where a developer calls setActive(true) before setting metadata.
BUG: 19730550
Change-Id: I8480f19ef6d5638311d77c2aec127d5ad72d6b40
2 files changed