Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4127)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java

Issue 2627753006: [Media>UI] Show artist instead of origin on Wearable (Closed)
Patch Set: rebased Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
index bf96dea971858d2fcb70ce276227255c4fd108ba..b9dca9d6989ae8c9a597943e092a2c57c993ab58 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
@@ -691,17 +691,11 @@ public class MediaNotificationManager {
private MediaMetadataCompat createMetadata() {
MediaMetadataCompat.Builder metadataBuilder = new MediaMetadataCompat.Builder();
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
- metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE,
- mMediaNotificationInfo.metadata.getTitle());
- metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE,
- mMediaNotificationInfo.origin);
- } else {
- metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_TITLE,
- mMediaNotificationInfo.metadata.getTitle());
- metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST,
- mMediaNotificationInfo.origin);
- }
+ metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_TITLE,
+ mMediaNotificationInfo.metadata.getTitle());
+ metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST,
+ mMediaNotificationInfo.origin);
+
if (!TextUtils.isEmpty(mMediaNotificationInfo.metadata.getArtist())) {
metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST,
mMediaNotificationInfo.metadata.getArtist());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698