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

Commit f770f8dd authored by Chen Chen's avatar Chen Chen
Browse files

Revert "BluetoothInCallService: Check null in OnCallRemoved"

This reverts commit 2551675a.

Reason for revert: Need to revert the entire telecom refactor

Change-Id: I37df4207177e5106ff02e67b6e750092f2fca842
parent 2551675a
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