DO NOT MERGE: Downbranch don't need this adjustment [Output Switcher] Disable volume when device is selectable in

group dialog

Test: Verified on device
Bug: 198510108
Change-Id: Ia6754e8d97bc768766f96eb25e5ea5fcca0b2602
This commit is contained in:
shaoweishen
2022-02-21 15:14:16 +00:00
parent 6bcdf6fa03
commit ed4faa60ea

View File

@@ -107,6 +107,8 @@ public class MediaOutputGroupAdapter extends MediaOutputBaseAdapter {
initSeekbar(device);
final List<MediaDevice> selectedDevices = mController.getSelectedMediaDevice();
if (isDeviceIncluded(mController.getSelectableMediaDevice(), device)) {
mSeekBar.setEnabled(false);
mSeekBar.setOnTouchListener((v, event) -> true);
mCheckBox.setButtonDrawable(R.drawable.ic_check_box);
mCheckBox.setChecked(false);
mCheckBox.setEnabled(true);