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
This commit is contained in:
pablohc 2026-01-31 01:43:46 +01:00
parent 38b17ec95d
commit 01651b0385
2 changed files with 5 additions and 5 deletions

View File

@ -20,8 +20,8 @@ constexpr int LEFT_MARGIN = 20;
constexpr int RIGHT_MARGIN = 40; // Extra space for scroll indicator constexpr int RIGHT_MARGIN = 40; // Extra space for scroll indicator
// Timing thresholds for button behavior // Timing thresholds for button behavior
constexpr int LONG_PRESS_MS = 450; // Long press: change tab constexpr int LONG_PRESS_MS = 450; // Long press: change tab
constexpr int DOUBLE_PRESS_MS = 120; // Double press: skip page constexpr int DOUBLE_PRESS_MS = 120; // Double press: skip page
constexpr unsigned long GO_HOME_MS = 1000; // Long press back: go to root constexpr unsigned long GO_HOME_MS = 1000; // Long press back: go to root
void sortFileList(std::vector<std::string>& strs) { void sortFileList(std::vector<std::string>& strs) {

View File

@ -31,9 +31,9 @@ class MyLibraryActivity final : public Activity {
}; };
ButtonState buttonState = ButtonState::Idle; ButtonState buttonState = ButtonState::Idle;
unsigned long firstPressTime = 0; // Time of first PRESS unsigned long firstPressTime = 0; // Time of first PRESS
unsigned long firstReleaseTime = 0; // Time of first RELEASE unsigned long firstReleaseTime = 0; // Time of first RELEASE
bool isPrevButtonPressed = false; // Which button was pressed first bool isPrevButtonPressed = false; // Which button was pressed first
// Action execution functions // Action execution functions
void executeMoveItem(bool isPrevButton); void executeMoveItem(bool isPrevButton);