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

Commit 4a552adf authored by Chen Chen's avatar Chen Chen Committed by Gerrit Code Review
Browse files

Merge "Revert "BluetoothInCallService: Check null in OnCallRemoved""

parents 3153101a f770f8dd
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -472,12 +472,7 @@ public class BluetoothInCallService extends InCallService {
    @Override
    public void onCallRemoved(Call call) {
        super.onCallRemoved(call);
        BluetoothCall bluetoothCall = getBluetoothCallById(call.getDetails().getTelecomCallId());
        if (bluetoothCall == null) {
            Log.w(TAG, "onCallRemoved, BluetoothCall is removed before registered");
            return;
        }
        onCallRemoved(bluetoothCall);
        onCallRemoved(getBluetoothCallById(call.getDetails().getTelecomCallId()));
    }

    @Override