Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad724437 authored by shaoweishen's avatar shaoweishen Committed by Shaowei Shen
Browse files

[Output Switcher] Enable volume control for single cast device

Test: verified on device
Bug: 202500642
Bug: 206373080
Change-Id: Idac5b52e8bb3effe2ab290d8051a442294f8d7b0
parent c452e344
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
    }