am c6de3212: Merge "Don\'t try to scale the bitmaps for null MediaMetadata." into lmp-mr1-dev
* commit 'c6de3212c2dd8638bf3150719ed331673fdcab06': Don't try to scale the bitmaps for null MediaMetadata.
This commit is contained in:
@@ -412,7 +412,9 @@ public final class MediaSession {
|
|||||||
* @param metadata The new metadata
|
* @param metadata The new metadata
|
||||||
*/
|
*/
|
||||||
public void setMetadata(@Nullable MediaMetadata metadata) {
|
public void setMetadata(@Nullable MediaMetadata metadata) {
|
||||||
metadata = (new MediaMetadata.Builder(metadata, mMaxBitmapSize)).build();
|
if (metadata != null ) {
|
||||||
|
metadata = (new MediaMetadata.Builder(metadata, mMaxBitmapSize)).build();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
mBinder.setMetadata(metadata);
|
mBinder.setMetadata(metadata);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user