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 1f47656548
commit 605c1f0faa

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));