Closed orenyodfat closed 9 years ago
Current fix is not complete because the app ignore location changes and loos locations. I am suspecting the 2 seconds wait. If the original state of the WiFi was enable there is no wait of 2 seconds. If the original state of the WiFi was disable so there is a sequential wait of 2 seconds each scan ...why?
I suggest the following to remove the 2 seconds wait. 1.We do not need to turn WiFi on and Off continually...any way when we are moving it most of the time on. 2.At lbmservice.java line 987 -- (when there is a more than 10 KMH movement) enable wifi if it was not enable before.
Looking at the code ...does the following scenario is possible?:
I would suggest:
A question: Does the Utils.Wait(2000) call at the readWiFi (for the case there is no WiFi) is only for the WiFi thread?