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

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

BluetoothInCallService: Patch on hangup, call reject() instead of disconnect() for ringing calls

Bug: 191625141
Test: atest BluetoothInstrumentationTests
Change-Id: I7af9585f8e1d12276f70ffe9090daaf81ec906b1
parent 294297c6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -354,7 +354,11 @@ public class BluetoothInCallService extends InCallService {
                Log.i(TAG, "BT - hanging up conference call");
                call = conferenceCall;
            }
            if (call.getState() == Call.STATE_RINGING) {
                call.reject(false, "");
            } else {
                call.disconnect();
            }
            return true;
        }
    }