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

Commit b243b9a8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix cast volume control bar not work" into rvc-qpr-dev am: 35f15fdb

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12613115

Change-Id: Icd301ba334760add2f730e4a7739fc942528680e
parents 95e4eb59 35f15fdb
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()));