Adding favicons read off disk to memory cache
This commit is contained in:
parent
5f871787a5
commit
ee2cf5fd35
@ -136,11 +136,14 @@ public class FaviconModel {
|
||||
|
||||
File faviconCacheFile = createFaviconCacheFile(mApplication, uri);
|
||||
|
||||
|
||||
Bitmap favicon = getFaviconFromMemCache(url);
|
||||
|
||||
if (faviconCacheFile.exists() && favicon == null) {
|
||||
favicon = mImageFetcher.retrieveFaviconFromCache(faviconCacheFile);
|
||||
|
||||
if (favicon != null) {
|
||||
addFaviconToMemCache(url, favicon);
|
||||
}
|
||||
}
|
||||
|
||||
if (favicon == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user