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

Commit 3a64d589 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix cast volume control bar not work"

parents 30397a0a 7f3efd43
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -91,7 +91,6 @@ public class RemoteMediaSlice implements CustomSliceable {
                R.drawable.ic_volume_remote);
        // To create an empty icon to indent the row
        final IconCompat emptyIcon = createEmptyIcon();
        int requestCode = 0;
        for (RoutingSessionInfo info : infos) {
            final int maxVolume = info.getVolumeMax();
            if (maxVolume <= 0) {
@@ -104,7 +103,7 @@ public class RemoteMediaSlice implements CustomSliceable {
            listBuilder.addInputRange(new InputRangeBuilder()
                    .setTitleItem(icon, ListBuilder.ICON_IMAGE)
                    .setTitle(castVolume)
                    .setInputAction(getSliderInputAction(requestCode++, info.getId()))
                    .setInputAction(getSliderInputAction(info.getId().hashCode(), info.getId()))
                    .setPrimaryAction(getSoundSettingAction(castVolume, icon, info.getId()))
                    .setMax(maxVolume)
                    .setValue(info.getVolume()));