Disable volume control bar for all remote devices

Bug: 189270378
Test: manual test
Change-Id: Id5ca32ffb86ac634a41b5ba077f76f2842e747e8
This commit is contained in:
Tim Peng
2021-08-09 07:19:12 +00:00
parent eac1d5a41c
commit 4cd66d15d7

View File

@@ -466,7 +466,7 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback {
}
boolean isVolumeControlEnabled(@NonNull MediaDevice device) {
return !device.getFeatures().contains(MediaRoute2Info.FEATURE_REMOTE_GROUP_PLAYBACK);
return !isActiveRemoteDevice(device);
}
private final MediaController.Callback mCb = new MediaController.Callback() {