From 230dcab138f069b89215161ce368b124f8bbe8ee Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 1 Dec 2022 12:17:21 -0800 Subject: [Bouncer] Fix some responsiveness issues. Found a couple of responsive issues and fixing them. 1. Numpad key digits had a min size of 32 sp. This would look off when we maximize the display size and go into half folded on a foldable device. I set the text to autosize with a max size of 32sp. 2. Userswitcher anchor was squished in password security method on tablet. I removed some clipping in order to fix this. Fixes: 261062809 Test: Open password view with max display and normal display sizes for tablet. Test: Half fold on foldable for pin view in bouncer. Change-Id: I78fbbb231c35118bef65660b7ca5562d77dad16b --- .../SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java index 5c4126eeb93a..8f3484a0c99b 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java @@ -221,10 +221,11 @@ public class KeyguardSecurityContainer extends ConstraintLayout { public void onEnd(WindowInsetsAnimation animation) { if (!mDisappearAnimRunning) { endJankInstrument(InteractionJankMonitor.CUJ_LOCKSCREEN_PASSWORD_APPEAR); - updateChildren(0 /* translationY */, 1f /* alpha */); } else { endJankInstrument(InteractionJankMonitor.CUJ_LOCKSCREEN_PASSWORD_DISAPPEAR); + setAlpha(0f); } + updateChildren(0 /* translationY */, 1f /* alpha */); } private void updateChildren(int translationY, float alpha) { -- cgit v1.2.3-59-g8ed1b