summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2018-02-23 13:31:38 -0500
committerMichael Bestas <mkbestas@lineageos.org>2019-11-09 22:47:37 +0200
commitfeb3d9fdd62e08b27be4e0c578c90c0f33712947 (patch)
tree429d639ef11fa2f860fafa8d1cced927003ae76e
parentb0e6afd9beb2781fac489663c7a3921c28aa2fa9 (diff)
downloadandroid_packages_apps_Snap-feb3d9fdd62e08b27be4e0c578c90c0f33712947.zip
android_packages_apps_Snap-feb3d9fdd62e08b27be4e0c578c90c0f33712947.tar.gz
android_packages_apps_Snap-feb3d9fdd62e08b27be4e0c578c90c0f33712947.tar.bz2
Stop using deprecated Canvas APIs.
Bug: 73777445 Test: compile Change-Id: Ib8a0b7dcbe606c2a1a9df26549cc805c6eeb892b
-rw-r--r--src/com/android/camera/ui/focus/FocusRingView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/focus/FocusRingView.java b/src/com/android/camera/ui/focus/FocusRingView.java
index 14a7f6c..0175bf6 100644
--- a/src/com/android/camera/ui/focus/FocusRingView.java
+++ b/src/com/android/camera/ui/focus/FocusRingView.java
@@ -169,7 +169,7 @@ public class FocusRingView extends View implements Invalidator, FocusRing {
}
if (mPreviewSize != null) {
- canvas.clipRect(mPreviewSize, Region.Op.REPLACE);
+ canvas.clipRect(mPreviewSize);
}
mAnimator.draw(canvas);