Skip to content

Commit

Permalink
Fix crash when there is no background on SwipeActionView
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunous committed Feb 23, 2017
1 parent ad5d64b commit 8c8fc28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ class SwipeActionView : FrameLayout {
rightSwipeView?.let { drawChild(canvas, it, drawingTime) }
}

if (!alwaysDrawBackground) {
if (!alwaysDrawBackground && background != null) {
// Restore original bounds only after drawing background views
canvas.restoreToCount(saveCount)
}
Expand Down

0 comments on commit 8c8fc28

Please sign in to comment.