Open GoogleCodeExporter opened 9 years ago
looking at code I've found strange code parts:
// Check to see if file has expired
final long now = System.currentTimeMillis();
final long lastModified = file.lastModified();
final boolean fileExpired = lastModified < now - mMaximumCachedFileAge;
if (fileExpired && drawable != null) {
if (DEBUGMODE) {
logger.debug("Tile expired: " + tile);
}
drawable.setState(new int[] {ExpirableBitmapDrawable.EXPIRED });
}
This piece of code is setting EXPIRED to all drawables, probably forcing them
to be reloaded again and again.
Original comment by oleg.top...@gmail.com
on 12 Aug 2014 at 7:28
The code that you called strange is doing exactly what it's supposed to be
doing.
I think the problem you're describing is that the expiration shouldn't apply
for offline tile sources.
Please submit an issue in GitHub.
Original comment by neilboyd
on 13 Aug 2014 at 12:55
Original issue reported on code.google.com by
oleg.top...@gmail.com
on 12 Aug 2014 at 7:17