From 01651b0385ee318e776344f37338e4431b28b766 Mon Sep 17 00:00:00 2001 From: pablohc Date: Sat, 31 Jan 2026 01:43:46 +0100 Subject: [PATCH] fix: format code with clang-format - Apply clang-format-fix to ensure consistent code style - Minor formatting adjustments in function comments and spacing - Maintains all functionality while improving readability --- src/activities/home/MyLibraryActivity.cpp | 4 ++-- src/activities/home/MyLibraryActivity.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/activities/home/MyLibraryActivity.cpp b/src/activities/home/MyLibraryActivity.cpp index 7b894699..06823f52 100644 --- a/src/activities/home/MyLibraryActivity.cpp +++ b/src/activities/home/MyLibraryActivity.cpp @@ -20,8 +20,8 @@ constexpr int LEFT_MARGIN = 20; constexpr int RIGHT_MARGIN = 40; // Extra space for scroll indicator // Timing thresholds for button behavior -constexpr int LONG_PRESS_MS = 450; // Long press: change tab -constexpr int DOUBLE_PRESS_MS = 120; // Double press: skip page +constexpr int LONG_PRESS_MS = 450; // Long press: change tab +constexpr int DOUBLE_PRESS_MS = 120; // Double press: skip page constexpr unsigned long GO_HOME_MS = 1000; // Long press back: go to root void sortFileList(std::vector& strs) { diff --git a/src/activities/home/MyLibraryActivity.h b/src/activities/home/MyLibraryActivity.h index 756540b7..ecf5a455 100644 --- a/src/activities/home/MyLibraryActivity.h +++ b/src/activities/home/MyLibraryActivity.h @@ -31,9 +31,9 @@ class MyLibraryActivity final : public Activity { }; ButtonState buttonState = ButtonState::Idle; - unsigned long firstPressTime = 0; // Time of first PRESS - unsigned long firstReleaseTime = 0; // Time of first RELEASE - bool isPrevButtonPressed = false; // Which button was pressed first + unsigned long firstPressTime = 0; // Time of first PRESS + unsigned long firstReleaseTime = 0; // Time of first RELEASE + bool isPrevButtonPressed = false; // Which button was pressed first // Action execution functions void executeMoveItem(bool isPrevButton);