diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java index 178cda46cddab..ba8e60a08a1d0 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java @@ -306,7 +306,7 @@ public class UdfpsKeyguardView extends UdfpsAnimationView { lp.width = mSensorBounds.width(); lp.height = mSensorBounds.height(); RectF relativeToView = getBoundsRelativeToView(new RectF(mSensorBounds)); - lp.setMargins( + lp.setMarginsRelative( (int) relativeToView.left, (int) relativeToView.top, (int) relativeToView.right,