From 972959f0042e0e3f00e0ee0d2886c23221a0f2b0 Mon Sep 17 00:00:00 2001 From: Beverly Date: Tue, 5 Oct 2021 10:30:49 -0400 Subject: [PATCH] Update sensor loc before showing auth ripple to use the most updated information Test: manually open and close device, check auth ripple comes from the right position Fixes: 197637248 Change-Id: I02e015a59aaa72469034306dc9be70b868b65f9c --- .../com/android/systemui/biometrics/AuthRippleController.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt index eb6b193d85a32..0932a8ce757e5 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt @@ -18,7 +18,6 @@ package com.android.systemui.biometrics import android.animation.ValueAnimator import android.content.Context -import android.content.res.Configuration import android.graphics.PointF import android.hardware.biometrics.BiometricSourceType import android.util.DisplayMetrics @@ -125,6 +124,7 @@ class AuthRippleController @Inject constructor( return } + updateSensorLocation() if (biometricSourceType == BiometricSourceType.FINGERPRINT && fingerprintSensorLocation != null) { mView.setSensorLocation(fingerprintSensorLocation!!) @@ -266,9 +266,6 @@ class AuthRippleController @Inject constructor( private val configurationChangedListener = object : ConfigurationController.ConfigurationListener { - override fun onConfigChanged(newConfig: Configuration?) { - updateSensorLocation() - } override fun onUiModeChanged() { updateRippleColor() }