Skip to content

Fix double tap behaviour on PineTimeStyle settings screen#1669

Merged
Riksu9000 merged 1 commit intoInfiniTimeOrg:mainfrom
kieranc:pts-doubletapfix
Mar 4, 2023
Merged

Fix double tap behaviour on PineTimeStyle settings screen#1669
Riksu9000 merged 1 commit intoInfiniTimeOrg:mainfrom
kieranc:pts-doubletapfix

Conversation

@kieranc
Copy link
Copy Markdown
Contributor

@kieranc kieranc commented Mar 3, 2023

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
Copy link
Copy Markdown

github-actions Bot commented Mar 3, 2023

Build size and comparison to main:

Section Size Difference
text 406684B -16B
data 940B 0B
bss 53568B 0B

@FintasticMan FintasticMan added the bug Something isn't working label Mar 3, 2023
Copy link
Copy Markdown
Member

@FintasticMan FintasticMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to have this fixed. Just a couple of minor style changes I would suggest.

Comment thread src/displayapp/screens/WatchFacePineTimeStyle.cpp
Copy link
Copy Markdown
Contributor

@Riksu9000 Riksu9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should find a more reliable approach to disabling touch events. Long tapping while the setting buttons are on the screen, the code gets executed each time. This could've been a problem if it created the objects multiple times.

In the mean time, I'll merge this to fix the bug. Thanks.

@Riksu9000 Riksu9000 merged commit ada1823 into InfiniTimeOrg:main Mar 4, 2023
Ceimour pushed a commit to Ceimour/InfiniTime that referenced this pull request Mar 16, 2023
Fixes InfiniTimeOrg#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.
@JF002 JF002 added this to the 1.12.0 milestone Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double tapping PineTimeStyle steps style button sends watch to sleep

4 participants