Skip to content

Commit da78931

Browse files
author
Zhiqiang Zhang
committed
[Media>UI] Don't show media metadata on lockscreen in Incognito mode
Media notification content is marked as private in Incognito mode, so the content is hidden on lockscreen. For the same reason, we shouldn't show the artwork image on lockscreen and wearable devices. BUG=683111 Review-Url: https://codereview.chromium.org/2646793006 Cr-Commit-Position: refs/heads/master@{#445745} (cherry picked from commit 233f53a) Review-Url: https://codereview.chromium.org/2657653002 . Cr-Commit-Position: refs/branch-heads/2987@{#65} Cr-Branched-From: ad51088-refs/heads/master@{#444943}
1 parent 4553996 commit da78931

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,10 @@ private void hideNotification(int tabId) {
673673
clearNotification();
674674
}
675675

676+
@Nullable
676677
private MediaMetadataCompat createMetadata() {
678+
if (mMediaNotificationInfo.isPrivate) return null;
679+
677680
MediaMetadataCompat.Builder metadataBuilder = new MediaMetadataCompat.Builder();
678681

679682
metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_TITLE,

0 commit comments

Comments
 (0)