group fix calling lv_obj_invalidate() when focuse is NULL (#1774)

This commit is contained in:
梁永祥
2020-09-08 21:56:51 +08:00
committed by GitHub
parent 50594851f6
commit c683a3612d

View File

@@ -332,9 +332,9 @@ void lv_group_set_editing(lv_group_t * group, bool edit)
focused->signal_cb(focused, LV_SIGNAL_FOCUS, NULL); /*Focus again to properly leave/open edit/navigate mode*/
lv_res_t res = lv_event_send(*group->obj_focus, LV_EVENT_FOCUSED, NULL);
if(res != LV_RES_OK) return;
}
lv_obj_invalidate(focused);
lv_obj_invalidate(focused);
}
}
/**