From 78800835f90717d2c698e00d2261937d1f26e1bd Mon Sep 17 00:00:00 2001 From: Yannick Ulrich Date: Sun, 12 Mar 2023 17:04:47 +0000 Subject: [PATCH] Fixed Werrors --- src/displayapp/screens/FileView.cpp | 2 +- src/displayapp/screens/Gallery.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/displayapp/screens/FileView.cpp b/src/displayapp/screens/FileView.cpp index e9167b2d0d..c6fbebcff4 100644 --- a/src/displayapp/screens/FileView.cpp +++ b/src/displayapp/screens/FileView.cpp @@ -6,7 +6,7 @@ using namespace Pinetime::Applications::Screens; FileView::FileView(uint8_t screenID, uint8_t nScreens, const char* path) - : screenID(screenID), nScreens(nScreens), Screen(), pageIndicator(screenID, nScreens) { + : Screen(), pageIndicator(screenID, nScreens), screenID(screenID), nScreens(nScreens) { label = nullptr; const char* c = strrchr(path, '/') + 1; diff --git a/src/displayapp/screens/Gallery.cpp b/src/displayapp/screens/Gallery.cpp index 8ce84eb56b..fe032640c7 100644 --- a/src/displayapp/screens/Gallery.cpp +++ b/src/displayapp/screens/Gallery.cpp @@ -31,6 +31,11 @@ bool Gallery::OnTouchEvent(Pinetime::Applications::TouchEvents event) { case Pinetime::Applications::TouchEvents::DoubleTap: current->ToggleInfo(); return true; + case Pinetime::Applications::TouchEvents::None: + case Pinetime::Applications::TouchEvents::Tap: + case Pinetime::Applications::TouchEvents::SwipeUp: + case Pinetime::Applications::TouchEvents::SwipeDown: + return false; } return false; }