X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fviews%2FNestedScrollWebView.kt;fp=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fviews%2FNestedScrollWebView.kt;h=6076950291c304e74fa75d0326913973da8c1984;hp=683c7aef14ea3df4ded5cf1376cfadeda4029ec4;hb=e6befb69eb16e4c633623df508bfb9de370e204f;hpb=35dd941d73d9d72a1ae8c16add68f20615affada diff --git a/app/src/main/java/com/stoutner/privacybrowser/views/NestedScrollWebView.kt b/app/src/main/java/com/stoutner/privacybrowser/views/NestedScrollWebView.kt index 683c7aef..60769502 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/views/NestedScrollWebView.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/views/NestedScrollWebView.kt @@ -156,9 +156,9 @@ class NestedScrollWebView @JvmOverloads constructor(context: Context, attributeS // Store the current favorite icon height. favoriteIconHeight = icon.height - // Scale the favorite icon bitmap down if it is larger than 256 x 256. Filtering uses bilinear interpolation. - favoriteIcon = if (icon.height > 256 || icon.width > 256) // Scale the icon before storing it. - Bitmap.createScaledBitmap(icon, 256, 256, true) + // Scale the favorite icon bitmap down if it is larger than 128 in either direction. Filtering uses bilinear interpolation. + favoriteIcon = if (icon.height > 128 || icon.width > 128) // Scale the icon before storing it. + Bitmap.createScaledBitmap(icon, 128, 128, true) else // Store the icon as presented. icon }