Merge "[Output Switcher] Enable volume control for single cast device"

This commit is contained in:
Shaowei Shen
2022-01-14 09:29:03 +00:00
committed by Android (Google) Code Review

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;
}