docs: Update Apps.md to remove Screen param (#1752)

This is needed since #1629.

Co-authored-by: FintasticMan <finlay.neon.kid@gmail.com>
main
Alex E 2023-11-16 09:46:25 +07:00 committed by GitHub
parent 9b8eb75f34
commit 930284adc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

@ -58,7 +58,7 @@ namespace Pinetime {
namespace Screens {
class MyApp : public Screen {
public:
MyApp(DisplayApp* app);
MyApp();
~MyApp() override;
};
}
@ -74,7 +74,7 @@ MyApp.cpp:
using namespace Pinetime::Applications::Screens;
MyApp::MyApp(DisplayApp* app) : Screen(app) {
MyApp::MyApp() {
lv_obj_t* title = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_text_static(title, "My test application");
lv_label_set_align(title, LV_LABEL_ALIGN_CENTER);