tawfiqdawod / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

MyLocationOverlay continues to draw the last location after call to disableMyLocation() #409

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add MyLocationOverlay to map
2. enable location updates to be drawn
3. call disableMyLocation() to stop location updates

What is the expected output? What do you see instead?
MyLocationOverlay should stop drawing the location, but it still does draw the 
latest location it has received.

What version of the product are you using? On what operating system?
r1129

Please provide any additional information below.
To fix this the 4th line in the draw() method needs to be changed from 

        if (mLocation != null) {

to

        if (mLocationListener != null && mLocation != null) {

Original issue reported on code.google.com by osei...@gmail.com on 8 Mar 2013 at 3:42

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1202.

Original comment by kurtzm...@gmail.com on 5 Apr 2013 at 3:16