refactor(app): App-per-screen navigation, remove menu_level entirely
Splits the ad-hoc menu_level state machine into standalone Apps with a uniform parent/child exit convention (long-press CONFIRM -> parent): clock_app renamed to home_app (boot-default), new set_clock_app extracted from home_app's time-edit mode, new ipc_bind_app extracted from menu_app's old level-2 screen, and the sensor-type selection step merged into pair_app as its new initial state. menu_app now only holds the 4-item top-level list (language toggle inline). Also makes both menu_app and pair_app's up/down navigation cyclic (wraps at both ends).
This commit is contained in:
@@ -127,7 +127,7 @@ static void SOSApp_onClose(void)
|
||||
static EventResult SOSApp_onEvent(SystemEvent *evt)
|
||||
{
|
||||
if (evt->key_event != KEY_EVENT_NONE) {
|
||||
AppManager_SwitchToForeground(&clock_app); // 退出 SOS,返回时钟
|
||||
AppManager_SwitchToForeground(&home_app); // 退出 SOS,返回时钟
|
||||
return EVENT_HANDLED;
|
||||
}
|
||||
return EVENT_IGNORED;
|
||||
|
||||
Reference in New Issue
Block a user