Skip to content
Permalink
Browse files

fix preview in editMode

  • Loading branch information...
beigirad committed Apr 19, 2019
1 parent c1942f3 commit 0b0856c121f73fc8c9ae5507143ac3992fbef06d
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/src/main/java/ir/beigirad/zigzagview/ZigzagView.java
@@ -125,7 +125,7 @@ protected void onDraw(Canvas canvas) {

drawZigzag();

if (zigzagElevation > 0 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
if (zigzagElevation > 0 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && !isInEditMode()) {
drawShadow();
canvas.drawBitmap(shadow, 0, 0, null);
}

0 comments on commit 0b0856c

Please sign in to comment.
You can’t perform that action at this time.