fix(screen): fix crash when starting two screen loads with animations (#5066)
This commit is contained in:
@@ -10,6 +10,12 @@ void test_screen_load_no_crash(void)
|
||||
lv_obj_del(screen);
|
||||
screen = lv_obj_create(NULL);
|
||||
lv_screen_load(screen);
|
||||
|
||||
/*Consecutively loading multiple screens with transition animations should not crash*/
|
||||
lv_obj_t * screen_with_anim_1 = lv_obj_create(NULL);
|
||||
lv_obj_t * screen_with_anim_2 = lv_obj_create(NULL);
|
||||
lv_screen_load_anim(screen_with_anim_1, LV_SCR_LOAD_ANIM_OVER_LEFT, 2000, 0, false);
|
||||
lv_screen_load_anim(screen_with_anim_2, LV_SCR_LOAD_ANIM_OVER_RIGHT, 1000, 500, false);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user