mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Setting the callback for previewItems to folderIcon. This allows the FolderIcon to get updated
without going through the child'draw pass. Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls Bug: 62900800 Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
This commit is contained in:
@@ -105,17 +105,6 @@ public class FastBitmapDrawable extends Drawable {
|
||||
|
||||
@Override
|
||||
public void draw(Canvas canvas) {
|
||||
drawInternal(canvas);
|
||||
}
|
||||
|
||||
public void drawWithBrightness(Canvas canvas, float brightness) {
|
||||
float oldBrightness = getBrightness();
|
||||
setBrightness(brightness);
|
||||
drawInternal(canvas);
|
||||
setBrightness(oldBrightness);
|
||||
}
|
||||
|
||||
protected void drawInternal(Canvas canvas) {
|
||||
canvas.drawBitmap(mBitmap, null, getBounds(), mPaint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user