mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +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
|
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) {
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user