~aleteoryx/muditaos

37171538c972a0b0889a0c3a121d3c4a46fcb179 — Bartosz Cichocki 4 years ago a0914b5
[EGD-7873] Fix call ended screen during BT connecting

Some devices were sending hangup message during connecting, which caused
call ended screen - now it's disabled unless a call has been picked up
M module-bluetooth/Bluetooth/interface/profiles/PhoneInterface.cpp => module-bluetooth/Bluetooth/interface/profiles/PhoneInterface.cpp +6 -1
@@ 9,12 9,17 @@ namespace bluetooth
{
    bool CellularInterfaceImpl::answerIncomingCall(sys::Service *service)
    {
        callActive = true;
        return CellularServiceAPI::AnswerIncomingCall(service);
    }

    bool CellularInterfaceImpl::hangupCall(sys::Service *service)
    {
        return CellularServiceAPI::HangupCall(service);
        if (callActive) {
            callActive = false;
            return CellularServiceAPI::HangupCall(service);
        }
        return true;
    }

    bool AudioInterfaceImpl::startAudioRouting(sys::Service *service)

M module-bluetooth/Bluetooth/interface/profiles/PhoneInterface.hpp => module-bluetooth/Bluetooth/interface/profiles/PhoneInterface.hpp +3 -0
@@ 20,6 20,9 @@ namespace bluetooth
      public:
        bool answerIncomingCall(sys::Service *service) override;
        bool hangupCall(sys::Service *service) override;

      private:
        bool callActive = false;
    };

    class AudioInterface