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
This commit is contained in:
Stan Iliev
2018-07-31 11:50:01 -04:00
parent 899c08aee8
commit dbcb8674fd
@@ -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