Skip to content

Conversation

@p1gp1g
Copy link

@p1gp1g p1gp1g commented Jul 20, 2025

When the popup is created on the notifications view, and the user return to the watch face; The popup is deleted and freed, but popup wasn't not set to nullptr, and isHidden to false so we ended up deleting again the popup. The best way to handle that is to always remove the popup when changing app. If the user click again, a new popup will show

tgc-dk and others added 3 commits May 29, 2025 22:30
When the device is woken through pressing the button everything is the
same.

But when woken through other means like single-tap or raise-to-wake,
then the screen is locked (and showing a lock screen on touch input)
until the button is pressed.

Only exception is when the alarm wakes the screen, then touch input is
still valid for the user to be able to press the red "stop alarm"
button.

Co-authored-by: NeroBurner <pyro4hell@gmail.com>
// This is mainly to fix an issue with receiving two notifications at the same time
// and shouldn't happen otherwise.
if (app != currentApp) {
popupMessage.SetHidden(true);

Choose a reason for hiding this comment

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

please add an additional comment describing why we do SetHidden here, otherwise the comment above doesn't fully represent the code below anymore. Other than that big THANKS for the fix!

Copy link
Author

Choose a reason for hiding this comment

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

I've added a comment 👍

It fixes a potential double-free when removing lock popup
@p1gp1g p1gp1g force-pushed the fix-button-unlock branch from f0d7298 to ea52fb7 Compare July 20, 2025 13:30
Copy link

@NeroBurner NeroBurner left a comment

Choose a reason for hiding this comment

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

LGTM

@NeroBurner
Copy link

merged into button-unlock Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants