Merge "Fix cast volume control bar not work" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
35f15fdbff
@@ -91,7 +91,6 @@ public class RemoteMediaSlice implements CustomSliceable {
|
|||||||
R.drawable.ic_volume_remote);
|
R.drawable.ic_volume_remote);
|
||||||
// To create an empty icon to indent the row
|
// To create an empty icon to indent the row
|
||||||
final IconCompat emptyIcon = createEmptyIcon();
|
final IconCompat emptyIcon = createEmptyIcon();
|
||||||
int requestCode = 0;
|
|
||||||
for (RoutingSessionInfo info : infos) {
|
for (RoutingSessionInfo info : infos) {
|
||||||
final int maxVolume = info.getVolumeMax();
|
final int maxVolume = info.getVolumeMax();
|
||||||
if (maxVolume <= 0) {
|
if (maxVolume <= 0) {
|
||||||
@@ -104,7 +103,7 @@ public class RemoteMediaSlice implements CustomSliceable {
|
|||||||
listBuilder.addInputRange(new InputRangeBuilder()
|
listBuilder.addInputRange(new InputRangeBuilder()
|
||||||
.setTitleItem(icon, ListBuilder.ICON_IMAGE)
|
.setTitleItem(icon, ListBuilder.ICON_IMAGE)
|
||||||
.setTitle(castVolume)
|
.setTitle(castVolume)
|
||||||
.setInputAction(getSliderInputAction(requestCode++, info.getId()))
|
.setInputAction(getSliderInputAction(info.getId().hashCode(), info.getId()))
|
||||||
.setPrimaryAction(getSoundSettingAction(castVolume, icon, info.getId()))
|
.setPrimaryAction(getSoundSettingAction(castVolume, icon, info.getId()))
|
||||||
.setMax(maxVolume)
|
.setMax(maxVolume)
|
||||||
.setValue(info.getVolume()));
|
.setValue(info.getVolume()));
|
||||||
|
Reference in New Issue
Block a user