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:
1 parent
0d52bca39e
commit
828b11e5a9
7 files changed
+40
-57
No files matched your search
@@ -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