summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Timer.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-05-12 04:18:02 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-05-12 04:18:02 (GMT)
commit6e9eafeba44fd0e698cf288704a5eb2fc6bd76aa (patch)
tree7d98fb3cbcaa05cf02585481c8e822005093c41f /src/displayapp/screens/Timer.cpp
parent6c3268c24be4555b68d4fd4e4bf488d5fce1369c (diff)
Use nullptr when aligning relative to parent
Diffstat (limited to 'src/displayapp/screens/Timer.cpp')
-rw-r--r--src/displayapp/screens/Timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Timer.cpp b/src/displayapp/screens/Timer.cpp
index 5cd496c..2427320 100644
--- a/src/displayapp/screens/Timer.cpp
+++ b/src/displayapp/screens/Timer.cpp
@@ -69,7 +69,7 @@ Timer::Timer(DisplayApp* app, Controllers::TimerController& timerController)
btnPlayPause = lv_btn_create(lv_scr_act(), nullptr);
btnPlayPause->user_data = this;
lv_obj_set_event_cb(btnPlayPause, btnEventHandler);
- lv_obj_align(btnPlayPause, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 0, -10);
+ lv_obj_align(btnPlayPause, nullptr, LV_ALIGN_IN_BOTTOM_MID, 0, -10);
lv_obj_set_height(btnPlayPause, 40);
txtPlayPause = lv_label_create(btnPlayPause, nullptr);
if (timerController.IsRunning()) {