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

Commit 08fc715e authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Removing shape detection in IconLoaderLib

Flag: EXEMPT refactor
Bug: 366237794
Test: Presubmit
Change-Id: I1a2d286263ab62e33cd253cf54192931a6904372
parent 15a70e8c
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);
            }
        }