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 Comment Children
  • > ...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.

  • Your description is right but reality is different, repeat:

    - 00:00:00 watch starts - high power - indicator not bright - OK

    - 00:00:10 onEnterSleep - indicator bright - OK

    - 00:00:15 wrist gesture - indicator not bright - it means onExitSleep was called, counter 0, 1, 2... HIGH POWER should be for about 10s

    - 00:00:18 next wrist gesture indicator still not bright (means no low power, or there was quick onEnterSleep  and I can't noticed it), counter 0,1... - counter starts from 0 it means onExitSleep was called (only in onExitSleep there is counter=0) but I'm still in HIGH POWER  (3rd second)