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

Commit 462ed818 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

HFP Client call status update

When a call is terminating only inform telecom about its termination
when there is an actual state change from the attached phone.

Bug: 138753272
Test: start and end call, observe logs from HfpClientDeviceBlock that a
closing call still in its previous state doesn't get destroyed
prematurely.

Change-Id: Ia5d105daa239f64b73c058d064c2e5181d862e4e
(cherry picked from commit d78d8d1e)

Merged-In: Ia5d105daa239f64b73c058d064c2e5181d862e4e
Change-Id: I5d9d59c64bc8a79b397d2d4ef6feef1320345f42
parent 48e0d779
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ public class HfpClientDeviceBlock {
        if (DBG) {
            Log.d(mTAG, "prevConn " + prevConn.isClosing() + " new call " + newCall.getState());
        }
        if (prevConn.isClosing()
        if (prevConn.isClosing() && prevConn.getCall().getState() != newCall.getState()
                && newCall.getState() != BluetoothHeadsetClientCall.CALL_STATE_TERMINATED) {
            return true;
        }