mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
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:
parent
38f00f87bf
commit
f875263117
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user