Skip to content

Commit

Permalink
docs(rlottie) fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Oct 22, 2021
1 parent 03fff13 commit ce0b564
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/libs/rlottie/lv_example_rlottie_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ void lv_example_rlottie_1(void)
lv_obj_center(lottie);
}

#else
void lv_example_rlottie_1(void)
{
/*TODO
*fallback for online examples*/

lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "Rlottie is not installed");
lv_obj_center(label);
}

#endif
11 changes: 11 additions & 0 deletions examples/libs/rlottie/lv_example_rlottie_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,15 @@ void lv_example_rlottie_2(void)
lv_obj_center(lottie);
}

#else
void lv_example_rlottie_2(void)
{
/*TODO
*fallback for online examples*/

lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "Rlottie is not installed");
lv_obj_center(label);
}

#endif

0 comments on commit ce0b564

Please sign in to comment.