Bug 1238656 - Part 3: bypass cache for homescreen icons r=mcomella draft
authorAndrzej Hunt <ahunt@mozilla.com>
Mon, 01 Feb 2016 14:00:38 -0800
changeset 331389 12920b739fa840651ff85450ba2e36079521f3e8
parent 331388 38e58631796d042efa28d0349b0c94065f9ca7b8
child 514374 8329d8d102f1a1c0769525e1124cab0bb048b43c
push id10975
push userahunt@mozilla.com
push dateWed, 17 Feb 2016 01:06:19 +0000
reviewersmcomella
bugs1238656
milestone47.0a1
Bug 1238656 - Part 3: bypass cache for homescreen icons r=mcomella MozReview-Commit-ID: Bvf6GyWXqQn
mobile/android/base/java/org/mozilla/gecko/favicons/Favicons.java
--- a/mobile/android/base/java/org/mozilla/gecko/favicons/Favicons.java
+++ b/mobile/android/base/java/org/mozilla/gecko/favicons/Favicons.java
@@ -601,11 +601,11 @@ public class Favicons {
      *
      * Deduces the favicon URL from the browser database, guessing if necessary.
      *
      * @param url page URL to get a large favicon image for.
      * @param onFaviconLoadedListener listener to call back with the result.
      */
     public static void getPreferredSizeFaviconForPage(Context context, String url, String iconURL, OnFaviconLoadedListener onFaviconLoadedListener) {
         int preferredSize = GeckoAppShell.getPreferredIconSize();
-        loadUncachedFavicon(context, url, iconURL, 0, preferredSize, onFaviconLoadedListener);
+        loadUncachedFavicon(context, url, iconURL, LoadFaviconTask.FLAG_BYPASS_CACHE_WHEN_DOWNLOADING_ICONS, preferredSize, onFaviconLoadedListener);
     }
 }