-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I use Osmand app and when mock location is active, Osmand always display the map with north up.
supportsBearing
is false
so I guess that even if setBearing
is called, the apps don't get any bearing ?
Lines 1045 to 1054 in 0cc9315
locationManager.addTestProvider(LocationManager.GPS_PROVIDER, | |
/*boolean requiresNetwork*/ false, | |
/*boolean requiresSatellite*/ true, | |
/*boolean requiresCell*/ false, | |
/*boolean hasMonetaryCost*/ false, | |
/*boolean supportsAltitude*/ true, | |
/*boolean supportsSpeed*/ true, | |
/*boolean supportsBearing */ false, | |
Criteria.POWER_LOW, | |
Criteria.ACCURACY_MEDIUM); |
Lines 989 to 993 in d674993
if (!Double.isNaN(bearing)) | |
newLocation.setBearing(bearing); | |
else { | |
//Log.d(TAG, "bearing is nan so not setting in newlocation"); | |
} |
PS: Osmand also get 0 satellites
Metadata
Metadata
Assignees
Labels
No labels