@ Override public void mapTileRequestExpiredTile ( MapTileRequestState pState , Drawable pDrawable ) { putTileIntoCache ( pState . getMapTile ( ) , pDrawable , ExpirableBitmapDrawable . getState ( pDrawable ) ) ; // tell our caller we've finished and it should update its view for ( final Handler handler : mTileRequestCompleteHandlers ) { if ( handler != null ) { handler . sendEmptyMessage ( MAPTILE_SUCCESS_ID ) ; } } if ( Configuration . getInstance ( ) . isDebugTileProviders ( ) ) { Log . d ( IMapView . LOGTAG , "MapTileProviderBase.mapTileRequestExpiredTile(): " + MapTileIndex . toString ( pState . getMapTile ( ) ) ) ; } }
Called by implementation class methods indicating that they have produced an expired result that can be used but better results may be delivered later . The tile is added to the cache and a MAPTILE_SUCCESS_ID message is sent .