Skip to content

Commit

Permalink
Set METADATA_KEY_TITLE
Browse files Browse the repository at this point in the history
Issue: #4292

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=199478946
  • Loading branch information
andrewlewis authored and ojw28 committed Jun 6, 2018
1 parent f59e6e5 commit 199f686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
changes ([#4276](https://github.com/google/ExoPlayer/issues/4276)).
* Fix `MediaCodec.native_setSurface` crash on Moto C
([#4315](https://github.com/google/ExoPlayer/issues/4315)).
* Set `METADATA_KEY_TITLE` on media descriptions
((#4292)[https://github.com/google/ExoPlayer/issues/4292]).

### 2.8.1 ###

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,9 @@ private void updateMediaSessionMetadata() {
}
}
if (description.getTitle() != null) {
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE,
String.valueOf(description.getTitle()));
String title = String.valueOf(description.getTitle());
builder.putString(MediaMetadataCompat.METADATA_KEY_TITLE, title);
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, title);
}
if (description.getSubtitle() != null) {
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE,
Expand Down

0 comments on commit 199f686

Please sign in to comment.