Support RTL with new Udfps overlay

Bug: 270088026
Test: atest SystemUITests:com.android.systemui.biometrics
Change-Id: I89ae4f7554983c6146576b70553906dba34579e9
This commit is contained in:
Austin Delgado
2023-04-04 11:56:47 -07:00
parent 646c4e0fe8
commit 8e2f1f3db9

View File

@@ -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,