InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.65k stars 912 forks source link

Fix double tap behaviour on PineTimeStyle settings screen #1669

Closed kieranc closed 1 year ago

kieranc commented 1 year ago

Fixes #1467 "Double tapping PineTimeStyle steps style button sends watch to sleep" Double tap is disabled on the color settings screen by checking if the Rnd button is visible, but this didn't work for the options screen as the Rnd button isn't visible. I've changed it to check if the Close button is visible instead, which is used on both settings screens, and resolves the bug. I also changed the button used to disable the long press behaviour which was an as-yet-undiscovered bug which would have allowed the long press action to be used when the options screen was visible.

github-actions[bot] commented 1 year ago
Build size and comparison to main: Section Size Difference
text 406684B -16B
data 940B 0B
bss 53568B 0B