From 2497f8aa28ab41180d8bd1995fb0962d01cdc5fd Mon Sep 17 00:00:00 2001 From: Jamie Garside Date: Thu, 16 Sep 2021 17:11:30 +0100 Subject: [PATCH] Fix bug preventing pattern bouncer entering half height mode. I messed up the resource qualifier for the guideline (referred to the PIN pad one after a copy+paste), so the top guideline for the pattern view was never updated, preventing it from only using half of the screen in HALF_FOLDED mode. Bug: 199991560 Test: Manually verified. Change-Id: I959a38dbd7302bce3e37738504bc71a848fd0cd6 --- .../SystemUI/src/com/android/keyguard/KeyguardPatternView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java index a35aedf6f5033..1862fc7f66030 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java @@ -102,7 +102,7 @@ public class KeyguardPatternView extends KeyguardInputView ConstraintSet cs = new ConstraintSet(); cs.clone(mContainer); - cs.setGuidelinePercent(R.id.pin_pad_top_guideline, posture == DEVICE_POSTURE_HALF_OPENED + cs.setGuidelinePercent(R.id.pattern_top_guideline, posture == DEVICE_POSTURE_HALF_OPENED ? halfOpenPercentage : 0.0f); cs.applyTo(mContainer); }