My weather widget uses getLastLocation() method to get current location. The last location is updated just in the case, when some app calls: Location update() method. WifiManager calls onWifiResultsAvailable even if Location update() is not called, but scanning property disallow update of the last location. And this is the proposal - what if the onWifiResultsAvailable method updates last location every time - so the lastLocation will be always the current one?
My weather widget uses getLastLocation() method to get current location. The last location is updated just in the case, when some app calls: Location update() method. WifiManager calls onWifiResultsAvailable even if Location update() is not called, but scanning property disallow update of the last location. And this is the proposal - what if the onWifiResultsAvailable method updates last location every time - so the lastLocation will be always the current one?