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);
|
File faviconCacheFile = createFaviconCacheFile(mApplication, uri);
|
||||||
|
|
||||||
|
|
||||||
Bitmap favicon = getFaviconFromMemCache(url);
|
Bitmap favicon = getFaviconFromMemCache(url);
|
||||||
|
|
||||||
if (faviconCacheFile.exists() && favicon == null) {
|
if (faviconCacheFile.exists() && favicon == null) {
|
||||||
favicon = mImageFetcher.retrieveFaviconFromCache(faviconCacheFile);
|
favicon = mImageFetcher.retrieveFaviconFromCache(faviconCacheFile);
|
||||||
|
|
||||||
|
if (favicon != null) {
|
||||||
|
addFaviconToMemCache(url, favicon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (favicon == null) {
|
if (favicon == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user