Skip to content

Commit

Permalink
Fixing view highlighting on Android P
Browse files Browse the repository at this point in the history
  • Loading branch information
shashachu committed Jun 20, 2019
1 parent 9421aaa commit 37c657d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ public void draw(Canvas canvas) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
canvas.clipRect(newRect, Region.Op.REPLACE);
} else {
canvas.clipOutRect(newRect);
canvas.save();
canvas.clipRect(newRect);
canvas.restore();
}
super.draw(canvas);
}
Expand Down

0 comments on commit 37c657d

Please sign in to comment.