Complete
over 5 years ago

WERETECH-8149

requiresBurnInProtection returns "true" on Fenix 5X 14.72 Beta

In WF CircularDidital, I have the code:

    function onEnterSleep() {
		var settings = Sys.getDeviceSettings();
		if (settings has :requiresBurnInProtection && settings.requiresBurnInProtection) {
			mIsBurnInProtection = true;
		}
        WatchUi.requestUpdate();
    }

...
    function onUpdate(dc) {
...    
        if (mIsBurnInProtection) {
        	AlwaysOn(dc);
        	return;
        }
...
    }

When this code is executed on Fenix5x 14.72 Beta, the "AlwaysOn (dc)" function is called. It is not called immediately, but a few seconds after the activation of WF, apparently after onEnterSleep()

I did it for Venu, but I did not expect it to work for other watches. I can solve it by adding a screen resolution to the analysis, but it shouldn’t be like that!