[Output Switcher] Enable volume control for single cast device

Test: verified on device
Bug: 202500642
Bug: 206373080
Change-Id: Idac5b52e8bb3effe2ab290d8051a442294f8d7b0
This commit is contained in:
shaoweishen
2022-01-06 08:32:33 +00:00
committed by Shaowei Shen
parent c452e34460
commit ad724437bd

View File

@@ -539,8 +539,7 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback {
}
boolean isVolumeControlEnabled(@NonNull MediaDevice device) {
// TODO(b/202500642): Also enable volume control for remote non-group sessions.
return !isActiveRemoteDevice(device)
return !device.getFeatures().contains(MediaRoute2Info.FEATURE_REMOTE_GROUP_PLAYBACK)
|| mVolumeAdjustmentForRemoteGroupSessions;
}