Clock widget doesn’t receive click events in some cases (Bug?)
Clock widget doesn’t receive click events in some cases (Bug?)
BY 08 Oct 2014Web Application Development
Hello everybody!
I’m developing a custom clock widget for Tizen Wearable. I’ve found that when I change locale on connected Android device, this causes clock widget to reload and after that widget doesn’t receive click events (such as window.onclick, document.onclick, someElement.onclick). Seems to be a bug, I’ve created test case for this.
Here are initial conditions:
Samsung Gear 2 Neo (SM-R381)
Gear is connected to Samsuns Galaxy SIII Mini (GT-I9300)
Test widget is installed to Gear ( here is source code https://bitbucket.org/vshalimov/tizenclickclock/src/0b66253ec93bfb32fb1e26e35cd4e11cd656d699?at=master , you can also find compiled .wgt inside ). This is a simple clock widget with click counter to detect user clicks
Gear display timeout is set to 5 minutes (optional, but it makes debug comfortable)
Steps to reproduce
Install test widget into gear, setup test widget as a home screen (clock) default and open home screen
Tap on the widget few times. You should see “clicks 1”, “clicks 2”, “clicks 3” and so on
On Android device go to Settings – Language and input and change locale for another one
After that you will see widget reloaded (it will disappear for a second, than go back again, and clicks count will return to 0)
Tap on the widget few times. Nothing will change, you’ll see no clicks counting
Swype widget left|right to go to Gear menu, than go back
Tap on the widget few times. You should see clicks handling properly.
Expected behaviour – on step 5 I’d like to see clicks working.
In test case clicks are handled via window.onclick, but I got same results for document.onclick and typical click handlers with jQuery
In test case we change language on connected Android device to reproduce the problem, but there some other cases when clicks are not handled (unfortunately, not so well defined) – so language change is not an actual reason, it seems more related to widget reload and/or some android services reload while ConfigurationChange.
Clock widget doesn’t receive click events in some cases (Bug?)
Hello everybody!
I’m developing a custom clock widget for Tizen Wearable. I’ve found that when I change locale on connected Android device, this causes clock widget to reload and after that widget doesn’t receive click events (such as window.onclick, document.onclick, someElement.onclick). Seems to be a bug, I’ve created test case for this.
Here are initial conditions:
Steps to reproduce
Expected behaviour – on step 5 I’d like to see clicks working.
In test case clicks are handled via window.onclick, but I got same results for document.onclick and typical click handlers with jQuery
In test case we change language on connected Android device to reproduce the problem, but there some other cases when clicks are not handled (unfortunately, not so well defined) – so language change is not an actual reason, it seems more related to widget reload and/or some android services reload while ConfigurationChange.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio