From 88e410e20aa755d37397c46d186f3b2830d7cf76 Mon Sep 17 00:00:00 2001 From: Maciej Gibowicz Date: Fri, 29 Apr 2022 14:30:45 +0200 Subject: [PATCH] [MOS-444] Fix phone freezing on low battery screen After exceeding the 10% threshold of the battery, there was no reaction during charging and the phone freezes on the screen with a low battery. --- products/PurePhone/sys/SystemManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/products/PurePhone/sys/SystemManager.cpp b/products/PurePhone/sys/SystemManager.cpp index 95e2143895da23d851591252eab75f590efb0e56..4a2503bfc40110c57b4ee6da5d8237b796502a7f 100644 --- a/products/PurePhone/sys/SystemManager.cpp +++ b/products/PurePhone/sys/SystemManager.cpp @@ -138,6 +138,9 @@ namespace sys { SystemManagerCommon::batteryNormalLevelAction(); CellularServiceAPI::ChangeModulePowerState(this, cellular::service::State::PowerState::On); + auto msg = std::make_shared( + false, Store::Battery::get().state == Store::Battery::State::Charging); + bus.sendUnicast(std::move(msg), service::name::appmgr); } void SystemManager::batteryCriticalLevelAction(bool charging)