Skip to content

Fixed crash with unloading window#2

Open
franc6 wants to merge 5 commits intoddwatson:masterfrom
franc6:crashfix
Open

Fixed crash with unloading window#2
franc6 wants to merge 5 commits intoddwatson:masterfrom
franc6:crashfix

Conversation

@franc6
Copy link

@franc6 franc6 commented Jan 2, 2018

If both power saving options are off, the watchface will crash when unloading,
because it tries to unsubscribe from the health service events, but it never
subscribed in the first place!

Also fixed unsubscribing from the tick timer service, since the wrong parameter was passed to unsubscribe when unloading the window, and it wasn't protected by a NULL pointer check (it shouldn't be NULL, but just in case, it's better to check).

Tom Francis added 5 commits December 21, 2017 08:44
For a 12-hour clock, the hour should show as a single digit for hours 1 - 9,
not as two digits.
Added indicator if quiet time is enabled.
This reverts commit 8fbdf4c.

That commit was made on the wrong branch.
The removal of . was not intentional.  It should remain.  However, escaping .
in a character class is not necessary, so I didn't restore the double \ in
front of it.
If both power saving options are off, the watchface will crash when unloading,
because it tries to unsubscribe from the health service events, but it never
subscribed in the first place!

Also fixed unsubscribing from the tick timer service, since the wrong parameter was passed to unsubscribe when unloading the window, and it wasn't protected by a NULL pointer check (it shouldn't be NULL, but just in case, it's better to check).
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.

1 participant