Skip to content
Snippets Groups Projects
Commit f3448fb6 authored by Brian Nicholson's avatar Brian Nicholson
Browse files

Bug 741010 - Don't save favicon if loaded from DB. r=mfinkle

parent 885fa92e
No related branches found
No related tags found
No related merge requests found
......@@ -340,18 +340,14 @@ public class Favicons {
String storedFaviconUrl = mDbHelper.getFaviconUrlForPageUrl(mPageUrl);
if (storedFaviconUrl != null && storedFaviconUrl.equals(mFaviconUrl)) {
image = loadFaviconFromDb();
if (image != null)
return image;
}
if (isCancelled())
return null;
if (isCancelled())
return null;
// If favicon URL is defined but the favicon image is not
// stored in the database for some reason, we force download.
if (image == null) {
image = downloadFavicon(faviconUrl);
}
} else {
image = downloadFavicon(faviconUrl);
}
image = downloadFavicon(faviconUrl);
if (image != null) {
Log.d(LOGTAG, "Downloaded favicon successfully for URL = " + mPageUrl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment