Get metadata description without creating MediaDescription
In MediaSession#setMetadata(), MediaMetadata#getDescription() is called to get a MediaDescription object from the metadata, and MediaDescription#toString() is implicitly called to get a string description with title, subtitle and description. This is unnecessary esp. because Bitmaps could be involved in creating the temporary MediaDescription. This change adds an API `MediaMetadata#getDescriptionString()` with the same behavior without creating an intermediate object. Bug: 400807118 Flag: EXEMPT refactor Test: local test Change-Id: I653fdd7a6fe087ccb4cfd47931b893c66a68fa40
Loading
Please register or sign in to comment