You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some metadata fields amongst [author, writer, composer, description] are not forwarded in some LegacyConversions actions #3018
In LegacyConversions.convertToMediaDescriptionCompat(), when displayTitle is not set, the fallback tries to find three non-null properties named in MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER, which has 9 entries.
Unfortunately, the associated mapper getText() considers only 7 cases.
These are missing:
case MediaMetadataCompat.METADATA_KEY_AUTHOR:
return metadata.author;
case MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION:
return metadata.description;
This is a potential lack for a com.android.car.media.BrowseViewController consumer.
In LegacyConversions.convertToMediaMetadataCompat(), these are missing:
if (metadata.author != null) {
builder.putText(MediaMetadataCompat.METADATA_KEY_AUTHOR, metadata.author);
}
if (metadata.writer != null) {
builder.putText(MediaMetadataCompat.METADATA_KEY_WRITER, metadata.writer);
}
if (metadata.composer != null) {
builder.putText(MediaMetadataCompat.METADATA_KEY_COMPOSER, metadata.composer);
}
These lacks have an impact for a com.android.car.media.common.ui.PlaybackCardController consumer.
In android.support.v4.media.MediaMetadataCompat.getDescription(), when the key METADATA_KEY_DISPLAY_TITLE is absent, three fallback keys are looked for in PREFERRED_DESCRIPTION_ORDER, which has 7 entries and notably these:
Note: METADATA_KEY_DISPLAY_SUBTITLE and METADATA_KEY_DISPLAY_DESCRIPTION are not mentioned here (anyway, v4.media or androidx.media are deprecated), contrary to the similar androidx.media3.session.legacy.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER, but this is conformant to android.media.MediaMetadata.PREFERRED_DESCRIPTION_ORDER, so it should be correct.
Activity
marcbaechinger commentedon Jan 20, 2026
Thanks for your report and the detailed analysis.
I sent a change for review to cover these cases:
MediaMetadata.authorMediaMetadatatoMediaMetdataCompatforauthor,writerandcomposer.display_descriptiontogetText()I also added a unit test to test this regression!
Thanks again!
Correctly honor author, writer and composer in metadata conversion
marcbaechinger commentedon Jan 21, 2026
This is fixed as per the commit from above.
Thanks for reporting!
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion
Correctly honor author, writer and composer in metadata conversion