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

Commit dbcb8674 authored by Stan Iliev's avatar Stan Iliev
Browse files

Fix All-apps search box background pixelation

Enable bitmap filter for search box background. This avoids
jagged line, when bitmap is translated by half screen pixel.

Bug: 77841258
Test: Ran launcher on a device
Change-Id: I9293669da5db8be16ebe55ce01ab0e9735932c12
parent 899c08ae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,7 +33,9 @@ public class NinePatchDrawHelper {

    private final Rect mSrc = new Rect();
    private final RectF mDst = new RectF();
    public final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
    // Enable filtering to always get a nice edge. This avoids jagged line, when bitmap is
    // translated by half pixel.
    public final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);

    /**
     * Draws the bitmap split into three parts horizontally, with the middle part having width