lishxi / osmdroid

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

use ExpiredBitmapDrawable in MapTileFilesystemProvider #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ExpiredBitmapDrawable was introduced with issue 46.
This can also be used in MapTileFilesystemProvider when returning a tile that 
has expired on the file system.

Original issue reported on code.google.com by neilboyd on 7 Dec 2011 at 6:09

GoogleCodeExporter commented 9 years ago
Attached is a patch that handles expired tiles on file system.
Not extensively tested, but I guess it should work.

The only flaw I can see is that when an expired tile is retrieved from the file 
system it is removed from mWorking, which means it may get requested twice - 
once from the continuation of the first request, and again if it's requested 
again from the top level. But maybe that was a problem in the previous 
implementation as well.

Original comment by neilboyd on 8 Dec 2011 at 3:39

Attachments:

GoogleCodeExporter commented 9 years ago
I committed this in revision 1012.

Original comment by neilboyd on 12 Dec 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Looks good to me.

Original comment by neilboyd on 12 Dec 2011 at 8:11