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: I66d18980f3d141d74334356aab7d484869bc481e
This commit is contained in:
tim peng
2021-08-11 02:54:30 +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() {