~aleteoryx/muditaos

6e104c4f742e0b11d8205a02590169eda970c1cc — Tigran Soghbatyan 4 years ago dd4a88b
[BH-1150] Fix battery status view timeout

Make battery status view to restart idle timeout
after coming back from popup view
M products/BellHybrid/apps/application-bell-main/windows/BellBatteryStatusWindow.cpp => products/BellHybrid/apps/application-bell-main/windows/BellBatteryStatusWindow.cpp +1 -4
@@ 93,7 93,6 @@ namespace gui
    void BellBatteryStatusWindow::onBeforeShow(ShowMode mode, SwitchData *data)
    {
        if (data != nullptr) {
            WindowWithTimer::onBeforeShow(mode, data);
            const auto &switchData = static_cast<Data &>(*data);
            const auto entry       = battery_utils::getScaledBatteryLevel(batteryEntries, switchData.chargeLevel);
            if (entry) {


@@ 104,8 103,6 @@ namespace gui
                body->resize();
            }
        }
        else {
            LOG_ERROR("BellBatteryStatusWindow must be invoked with a valid SwitchData");
        }
        WindowWithTimer::onBeforeShow(mode, data);
    }
} // namespace gui