~aleteoryx/muditaos

88e410e20aa755d37397c46d186f3b2830d7cf76 — Maciej Gibowicz 3 years ago 43f7da6
[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.
1 files changed, 3 insertions(+), 0 deletions(-)

M products/PurePhone/sys/SystemManager.cpp
M products/PurePhone/sys/SystemManager.cpp => products/PurePhone/sys/SystemManager.cpp +3 -0
@@ 138,6 138,9 @@ namespace sys
    {
        SystemManagerCommon::batteryNormalLevelAction();
        CellularServiceAPI::ChangeModulePowerState(this, cellular::service::State::PowerState::On);
        auto msg = std::make_shared<CriticalBatteryLevelNotification>(
            false, Store::Battery::get().state == Store::Battery::State::Charging);
        bus.sendUnicast(std::move(msg), service::name::appmgr);
    }

    void SystemManager::batteryCriticalLevelAction(bool charging)