Skip to content

Commit 51c07bc

Browse files
committed
Fix regression in RCC.editMetadata(false)
Found a very simple fix. Just set the cached metadata so we have it to copy over when editMetadata(false) is called. bug:17796693 Change-Id: Ib27f0c3d28e7f2a3c7d9495697f36c8045e2bcf6
1 parent ae30948 commit 51c07bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

media/java/android/media/RemoteControlClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ public synchronized void apply() {
572572

573573
// USE_SESSIONS
574574
if (mSession != null && mMetadataBuilder != null) {
575-
mSession.setMetadata(mMetadataBuilder.build());
575+
mMediaMetadata = mMetadataBuilder.build();
576+
mSession.setMetadata(mMediaMetadata);
576577
}
577578
mApplied = true;
578579
}

0 commit comments

Comments
 (0)