Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05f838e9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Removing shape detection in IconLoaderLib" into main

parents ab9c80e6 08fc715e
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -136,23 +136,15 @@ class BubbleOverflow(private val context: Context, private val positioner: Bubbl

        // Update bitmap
        val fg = InsetDrawable(overflowBtn?.iconDrawable, overflowIconInset)
        bitmap =
            iconFactory
                .createBadgedIconBitmap(AdaptiveIconDrawable(ColorDrawable(colorAccent), fg))
                .icon
        val drawable = AdaptiveIconDrawable(ColorDrawable(colorAccent), fg)
        bitmap = iconFactory.createBadgedIconBitmap(drawable).icon

        // Update dot path
        dotPath =
            PathParser.createPathFromPathData(
                res.getString(com.android.internal.R.string.config_icon_mask)
            )
        val scale =
            iconFactory.normalizer.getScale(
                iconView!!.iconDrawable,
                null /* outBounds */,
                null /* path */,
                null /* outMaskShape */
            )
        val scale = iconFactory.normalizer.getScale(iconView!!.iconDrawable)
        val radius = BadgedImageView.DEFAULT_PATH_SIZE / 2f
        val matrix = Matrix()
        matrix.setScale(
+1 −1
Original line number Diff line number Diff line
@@ -633,7 +633,7 @@ public class SplashscreenContentDrawer {

        private class ShapeIconFactory extends BaseIconFactory {
            protected ShapeIconFactory(Context context, int fillResIconDpi, int iconBitmapSize) {
                super(context, fillResIconDpi, iconBitmapSize, true /* shapeDetection */);
                super(context, fillResIconDpi, iconBitmapSize);
            }
        }