Output switcher header is not updated with the latest media content

-Register media controller callback
-Update panel header when medadata changes
-Add test cases

Bug: 151396986
Test: make -j50 RunSettingsRoboTests
Change-Id: Id0b8f997899a96c0c94ca6bf099e624a9e87795b
This commit is contained in:
Tim Peng
2020-03-13 14:10:40 +08:00
parent 8ee5045d68
commit 36c4949414
7 changed files with 113 additions and 27 deletions

View File

@@ -148,7 +148,7 @@ public class MediaOutputGroupPanel implements PanelContent, LocalMediaManager.De
@Override
public void onDeviceListUpdate(List<MediaDevice> devices) {
if (mCallback != null) {
mCallback.onGroupChanged();
mCallback.onHeaderChanged();
}
}