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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java

Issue 1847063005: [Media, UI] Change MediaNotification style to MediaStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proguards Created 4 years, 8 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
Index: chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java
index 35b9fb0728f05cc36dc38d06e472921feb33a0fd..f98442b96c473cd014a3b55cd3569cd380542b6b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java
@@ -82,7 +82,7 @@ public class CastNotificationControl implements MediaRouteController.UiListener,
}
mPosterBitmap = posterBitmap;
if (mNotificationBuilder == null || mMediaRouteController == null) return;
- mNotificationBuilder.setImage(mMediaRouteController.getPoster());
+ mNotificationBuilder.setLargeIcon(mMediaRouteController.getPoster());
updateNotification();
}
@@ -105,7 +105,7 @@ public class CastNotificationControl implements MediaRouteController.UiListener,
.setPrivate(false)
.setIcon(R.drawable.ic_notification_media_route)
.setContentIntent(contentIntent)
- .setImage(mMediaRouteController.getPoster())
+ .setLargeIcon(mMediaRouteController.getPoster())
.setId(R.id.remote_notification)
.setListener(this);
mState = initialState;
@@ -136,7 +136,7 @@ public class CastNotificationControl implements MediaRouteController.UiListener,
// poster changes.
public void onPosterBitmapChanged() {
if (mNotificationBuilder == null || mMediaRouteController == null) return;
- mNotificationBuilder.setImage(mMediaRouteController.getPoster());
+ mNotificationBuilder.setLargeIcon(mMediaRouteController.getPoster());
updateNotification();
}

Powered by Google App Engine
This is Rietveld 408576698