mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-09-20 18:54:21 +00:00
Match the shell initialization call inside run() so its failure guard does not break the network-independence contract. Preserve initialization ordering and blocking-network checks. Apply clang-format 14 to the web preview sources. Verified all 2107 CI-scoped source files and seven positive/negative startup contract cases.
25 lines
788 B
C++
25 lines
788 B
C++
// Only platform services/data are substituted. No LVGL page layout lives here.
|
|
#include "platform/ui/device_runtime.h"
|
|
#include "platform/ui/settings_store.h"
|
|
#include "ui/widgets/foreground_operation_overlay.h"
|
|
#include <string>
|
|
|
|
namespace platform::ui::device
|
|
{
|
|
BatteryInfo battery_info() { return {true, false, 85}; }
|
|
void handle_low_battery(const BatteryInfo&) {}
|
|
} // namespace platform::ui::device
|
|
namespace ui::widgets::foreground_operation
|
|
{
|
|
Snapshot make_snapshot(Slot slot, Policy policy, Priority priority, const char*, const char*, int, const char*, uint32_t)
|
|
{
|
|
Snapshot s;
|
|
s.slot = slot;
|
|
s.policy = policy;
|
|
s.priority = priority;
|
|
return s;
|
|
}
|
|
void publish(const Snapshot&) {}
|
|
void clear(Slot, uint32_t) {}
|
|
} // namespace ui::widgets::foreground_operation
|