mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing issue where dragview was jagged when scaled.
Change-Id: Ibc4b6e023428f39464f015726a22c2ec5130e63b
This commit is contained in:
@@ -163,7 +163,7 @@ public class DragView extends View {
|
||||
canvas.drawRect(0, 0, getWidth(), getHeight(), p);
|
||||
}
|
||||
if (mPaint == null) {
|
||||
mPaint = new Paint();
|
||||
mPaint = new Paint(Paint.FILTER_BITMAP_FLAG);
|
||||
}
|
||||
|
||||
mHasDrawn = true;
|
||||
@@ -214,7 +214,7 @@ public class DragView extends View {
|
||||
public void setAlpha(float alpha) {
|
||||
super.setAlpha(alpha);
|
||||
if (mPaint == null) {
|
||||
mPaint = new Paint();
|
||||
mPaint = new Paint(Paint.FILTER_BITMAP_FLAG);
|
||||
}
|
||||
mPaint.setAlpha((int) (255 * alpha));
|
||||
invalidate();
|
||||
|
||||
Reference in New Issue
Block a user