Stop using deprecated Canvas APIs.

Bug: 73777445
Test: compile
Change-Id: Ic0a1f4ebc10ba46229fd97408c052c0b450b4945
This commit is contained in:
Derek Sollenberger committed 2018-03-01 04:39:57 +00:00
1 parent 43936eb05c
commit 26a1b452f4
12 files changed
+15 -19

No files matched your search

@@ -63,10 +63,10 @@ public class DoubleShadowBubbleTextView extends BubbleTextView {
ColorUtils.setAlphaComponent(mShadowInfo.ambientShadowColor, alpha));
drawWithoutBadge(canvas);
canvas.save(Canvas.CLIP_SAVE_FLAG);
canvas.save();
canvas.clipRect(getScrollX(), getScrollY() + getExtendedPaddingTop(),
getScrollX() + getWidth(),
getScrollY() + getHeight(), Region.Op.INTERSECT);
getScrollY() + getHeight());
getPaint().setShadowLayer(mShadowInfo.keyShadowBlur, 0.0f, mShadowInfo.keyShadowOffset,
ColorUtils.setAlphaComponent(mShadowInfo.keyShadowColor, alpha));