mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
Fix possible NPE in color picker dialog
This commit is contained in:
parent
c4621b0de3
commit
b354b32bb7
|
@ -55,6 +55,7 @@ public class AlphaPatternDrawable extends Drawable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(Canvas canvas) {
|
public void draw(Canvas canvas) {
|
||||||
|
if (mBitmap != null)
|
||||||
canvas.drawBitmap(mBitmap, null, getBounds(), mPaint);
|
canvas.drawBitmap(mBitmap, null, getBounds(), mPaint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user