Skip to content

Commit 9947b76

Browse files
committed
fix crash when click center key while the animation is still playing.
1 parent 17e9d6b commit 9947b76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fw/application/src/app/desktop/app_desktop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ void app_desktop_on_run(mini_app_inst_t *p_app_inst) {
4646
mui_view_dispatcher_switch_to_view(p_app_handle->p_view_dispatcher, DESKTOP_VIEW_ID_MAIN);
4747
}
4848

49-
void app_desktop_on_kill(mini_app_inst_t *p_app_inst) {
49+
void app_desktop_on_kill(mini_apddp_inst_t *p_app_inst) {
5050
app_desktop_t *p_app_handle = p_app_inst->p_handle;
5151

52+
mui_view_dispatcher_switch_to_view(p_app_handle->p_view_dispatcher, VIEW_NONE);
5253
mui_view_dispatcher_detach(p_app_handle->p_view_dispatcher, MUI_LAYER_WINDOW);
5354
mui_view_dispatcher_free(p_app_handle->p_view_dispatcher);
5455
app_list_view_free(p_app_handle->p_app_list_view);

0 commit comments

Comments
 (0)