Skip to content

Commit 8320454

Browse files
Dhina17ralph950412
authored andcommitted
SystemUI: Update UdfpsTouchOverlay sensorRect on updating overlay params
Fixes an issue that illumination dot showing in wrong place when device goes to sleep from landscape orientation. Test: 1) Setup screen lock and enroll fingerprint (udfps) 2) Set screen timeout to 15 seconds (optional for quick testing) 3) Rotate the device content to landscape 4) Let it sleep by timeout 5) Turn on screen and tap the udfps icon 6) Confirm that it shows the illumination dot in right position Related to this commit I4a4e85a7437a9a444a4f952fd62e4fe12f56ce5a Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8027 Change-Id: I8a07eb106283f6666f8a8e2ec16ca39e44a9aa1b
1 parent 34d533e commit 8320454

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/SystemUI/src/com/android/systemui/biometrics/UdfpsControllerOverlay.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ constructor(
271271
fun updateOverlayParams(updatedOverlayParams: UdfpsOverlayParams) {
272272
overlayParams = updatedOverlayParams
273273
sensorBounds = updatedOverlayParams.sensorBounds
274+
overlayTouchView?.sensorRect = updatedOverlayParams.sensorBounds
274275
getTouchOverlay()?.let {
275276
if (addViewRunnable == null) {
276277
// Only updateViewLayout if there's no pending view to add to WM.

0 commit comments

Comments
 (0)