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

Commit f8f8b41f authored by Junho's avatar Junho
Browse files

Update fixes based on the latest source code

bug: 263191685
Test: make oriole-userdebug
Change-Id: I64aa8edb9ebc5edb3d816a7fdbe6d41813201361
parent 2affe32f
Loading
Loading
Loading
Loading
+24 −18
Original line number Diff line number Diff line
@@ -1383,13 +1383,15 @@ public class InCallController extends CallsManagerListenerBase implements
    public void onCallEndpointChanged(CallEndpoint callEndpoint) {
        if (!mInCallServices.isEmpty()) {
            Log.i(this, "Calling onCallEndpointChanged");
            for (IInCallService inCallService : mInCallServices.values()) {
            mInCallServices.values().forEach(inCallServices -> {
                for (IInCallService inCallService : inCallServices.values()) {
                    try {
                        inCallService.onCallEndpointChanged(callEndpoint);
                    } catch (RemoteException ignored) {
                        Log.d(this, "Remote exception calling onCallEndpointChanged");
                    }
                }
            });
        }
    }

@@ -1398,13 +1400,15 @@ public class InCallController extends CallsManagerListenerBase implements
        if (!mInCallServices.isEmpty()) {
            Log.i(this, "Calling onAvailableCallEndpointsChanged");
            List<CallEndpoint> availableEndpoints = new ArrayList<>(availableCallEndpoints);
            for (IInCallService inCallService : mInCallServices.values()) {
            mInCallServices.values().forEach(inCallServices -> {
                for (IInCallService inCallService : inCallServices.values()) {
                    try {
                        inCallService.onAvailableCallEndpointsChanged(availableEndpoints);
                    } catch (RemoteException ignored) {
                        Log.d(this, "Remote exception calling onAvailableCallEndpointsChanged");
                    }
                }
            });
        }
    }

@@ -1412,13 +1416,15 @@ public class InCallController extends CallsManagerListenerBase implements
    public void onMuteStateChanged(boolean isMuted) {
        if (!mInCallServices.isEmpty()) {
            Log.i(this, "Calling onMuteStateChanged");
            for (IInCallService inCallService : mInCallServices.values()) {
            mInCallServices.values().forEach(inCallServices -> {
                for (IInCallService inCallService : inCallServices.values()) {
                    try {
                        inCallService.onMuteStateChanged(isMuted);
                    } catch (RemoteException ignored) {
                        Log.d(this, "Remote exception calling onMuteStateChanged");
                    }
                }
            });
        }
    }