Bug 712576 - On Android, we place a criteria on the location provider such that it must return a 'fine' grain location. It could be that this prevents some location providers -- ones that have network but not a GPS backed device -- from working. r=jdm

This commit is contained in:
Doug Turner 2012-01-13 16:01:58 -08:00
parent 38f00f87bf
commit f875263117

View File

@ -573,9 +573,8 @@ public class GeckoAppShell
GeckoApp.mAppContext.getSystemService(Context.LOCATION_SERVICE);
if (enable) {
Criteria crit = new Criteria();
crit.setAccuracy(Criteria.ACCURACY_FINE);
String provider = lm.getBestProvider(crit, true);
Criteria criteria = new Criteria();
String provider = lm.getBestProvider(criteria, true);
if (provider == null)
return;