Comment 1 for bug 1276066

Revision history for this message
Matthew Paul Thomas (mpt) wrote : Re: Checkbox cannot be stopped from animating

I'm not sure turning off animations is an appropriate solution to the problem. Even if you do that, occasionally the device will be slow enough that you still see the control in the wrong state before it gains the correct state. That will make the whole device feel less trustworthy.

I suggest that the toolkit instead just not show a checkbox or switch at all until its state is known. It's better for it to be a little late and correct, than early and shifty.

What would be *really* cool would be if the toolkit automatically implemented, for every checkbox and switch, the behavior I defined for the call forwarding and call waiting switches: if the state takes a long time, show a spinner instead until the state becomes known. <https://wiki.ubuntu.com/PhoneApp#Call_waiting>

To be precise, something like this:
 * initially don't show the control at all
 * if state still isn't known after 500 ms, show the label but not yet the checkbox/switch
 * if state still isn't known after another 500 ms, show a spinner where the checkbox/switch will end up.