~aleteoryx/muditaos

24fe27e9b8041c31b8604fd877421172e9dbcafc — Kuba 3 years ago 497328d
[MOS-293] Fixed lock screen from Calculator

Lock screen after auto lock in Calculator was broken.
Now it's fixed.
1 files changed, 7 insertions(+), 1 deletions(-)

M module-apps/application-calculator/ApplicationCalculator.cpp
M module-apps/application-calculator/ApplicationCalculator.cpp => module-apps/application-calculator/ApplicationCalculator.cpp +7 -1
@@ 16,7 16,13 @@ namespace app

    sys::MessagePointer ApplicationCalculator::DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp)
    {
        return Application::DataReceivedHandler(msgl);
        auto retMsg = Application::DataReceivedHandler(msgl);
        // if message was handled by application's template there is no need to process further.
        if (retMsg && (dynamic_cast<sys::ResponseMessage *>(retMsg.get())->retCode == sys::ReturnCodes::Success)) {
            return retMsg;
        }

        return handleAsyncResponse(resp);
    }

    // Invoked during initialization