Merge "Disable volume control bar for all remote devices" into sc-dev am: deb10abc4f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15498913

Change-Id: I11f82e3ce0d1fd6d7c2d014e3090f2bbad89267f
This commit is contained in:
tim peng
2021-08-11 02:53:01 +00:00
committed by Automerger Merge Worker

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() {