Bug 968180 - Favicons in URL bar are not fetched after changing an option in settings menu (backout bug 934658). r=mfinkle

This commit is contained in:
Chenxia Liu 2014-02-07 10:42:04 -08:00
parent 9520cd8810
commit 9401338644

View File

@ -150,11 +150,8 @@ public class ToolbarDisplayLayout extends GeckoLinearLayout
mPrivateDomainColor = new ForegroundColorSpan(res.getColor(R.color.url_bar_domaintext_private));
mFavicon = (ImageButton) findViewById(R.id.favicon);
if (Build.VERSION.SDK_INT >= 11) {
if (Build.VERSION.SDK_INT >= 16) {
mFavicon.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
}
mFavicon.setLayerType(View.LAYER_TYPE_HARDWARE, null);
if (Build.VERSION.SDK_INT >= 16) {
mFavicon.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
}
mFaviconSize = Math.round(res.getDimension(R.dimen.browser_toolbar_favicon_size));