mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 06:37:38 +03:00
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:
parent
38b17ec95d
commit
01651b0385
@ -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<std::string>& strs) {
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user