Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb9836f1 authored by Marvin Ramin's avatar Marvin Ramin
Browse files

Update VirtualDeviceImpl#hasCustomAudioInputSupport

Return true if either of the following is true:
- An AudioMix for the VD ID is registered in AudioService
- POLICY_TYPE_AUDIO is custom

Bug: 291737188
Change-Id: I0fc7903ea32e08bbe06c3d08b8b2bd14ada133a9
Test: presubmits
parent 94a00738
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1078,8 +1078,8 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
            return false;
        }

        if (getDevicePolicy(POLICY_TYPE_AUDIO) == VirtualDeviceParams.DEVICE_POLICY_DEFAULT) {
            return false;
        if (getDevicePolicy(POLICY_TYPE_AUDIO) == VirtualDeviceParams.DEVICE_POLICY_CUSTOM) {
            return true;
        }
        final long token = Binder.clearCallingIdentity();
        try {