google / physical-web

The Physical Web: walk up and use anything
http://physical-web.org
Apache License 2.0
6k stars 665 forks source link

Fix Blocky UI behavior while scanning #874

Closed iankchristie closed 7 years ago

iankchristie commented 7 years ago

onUrlDeviceDiscoveryUpdate being called rapidly during scanning. Because of inefficiencies in the process of adding it to the UI this caused blocky behavior. This fix optimizes when we call the UIThread to empty the GroupIdQueue.

iankchristie commented 7 years ago

@cco3 Is this fix ready to go?

cco3 commented 7 years ago

I think so. Please squash the changes together first.

iankchristie commented 7 years ago

@cco3 squashed the changes. Credit: Doug & Matt