You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experiment to try to increase snappiness of brightness change upon click
v0.1.9: base (try to update icon if applicable)
v0.1.10 : do not update tile at all
v0.1.11 : update only state (no UI changes)
v0.1.12 : update tile icon, but not state
v0.1.14 : update icon with AsyncTask (that only update UI)
v0.1.15 : an empty tile (still calling tile.updateTile())
Conclusion:
any tile update, even an empty one, could stall UI intermittently
using AsyncTask brings no noticeable change
Reasons
by stalling, it means that after clicking the tile, occasionally
it does not accept further clicks for a few seconds, making cycling
through brightness a tad unpleasant.
the reason seems to be when there is a tile update, Android would occasionally
stop listening to tile (calling #onStopListening()). A few seconds later,
it would start listening again (calling #onStartListening()).
In the interval between stop and start, clicking on tile would be fruitless
For now, either live will the intermittent stalling, or do not update UI at all
One possible enhancement is to use META_DATA_ACTIVE_TILE