Complete
over 4 years ago

WERETECH-11068

Fixed

onExitSleep is called after each wrist gesture even in high power

Fenix 6 Series - 15.73

My watch face has got indicator low power which is bright after call onEnterSleep so I now when is low power.

In onExitSleep I start count something for zero and need 10 second and i dev version I show this counter.

I can see such strange behaviour:

- enter sleep - indicator bright

- wrist gesture - indicator not bright , counter 0, 1, 2...

- next wrist gesture - indicator still not bright , counter 0,1...

it means that system call onExitSleep  wihout onEnterSleep  or onEnterSleep  and onExitSleep  one by one

In my opinion it should work else:

- enter sleep - indicator bright

- wrist gesture - indicator not bright , counter 0, 1, 2...

- next wrist gesture - indicator still not bright , counter 3, 4,...

Parents
  • > ...After that you should go by onEnterSleep and onExitSleep as they will tell you the state of low power on/off

    Yes, the last of these functions to be called will tell you the state of the system. Most normal apps only care about the current state, so that is not a problem. In this case the issue that is being described is that onEnterSleep is being called by the system when the 10-15 second gesture timer expires (you lift your arm and look at the watch for 15 sec and it transitions back to low power mode) and then it is being called *again* when you put your arm down. That is a bug.

Comment
  • > ...After that you should go by onEnterSleep and onExitSleep as they will tell you the state of low power on/off

    Yes, the last of these functions to be called will tell you the state of the system. Most normal apps only care about the current state, so that is not a problem. In this case the issue that is being described is that onEnterSleep is being called by the system when the 10-15 second gesture timer expires (you lift your arm and look at the watch for 15 sec and it transitions back to low power mode) and then it is being called *again* when you put your arm down. That is a bug.

Children
No Data