Merge "[Bouncer] Fix some responsiveness issues." into tm-qpr-dev

This commit is contained in:
Aaron Liu
2022-12-05 15:24:41 +00:00
committed by Android (Google) Code Review
3 changed files with 4 additions and 3 deletions

View File

@@ -21,8 +21,6 @@
android:id="@+id/keyguard_bouncer_user_switcher" android:id="@+id/keyguard_bouncer_user_switcher"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clipChildren="false"
android:clipToPadding="false"
android:orientation="vertical" android:orientation="vertical"
android:gravity="center" android:gravity="center"
android:importantForAccessibility="yes"> <!-- Needed because TYPE_WINDOW_STATE_CHANGED is sent android:importantForAccessibility="yes"> <!-- Needed because TYPE_WINDOW_STATE_CHANGED is sent

View File

@@ -18,6 +18,8 @@
<TextView <TextView
android:id="@+id/digit_text" android:id="@+id/digit_text"
style="@style/Widget.TextView.NumPadKey.Digit" style="@style/Widget.TextView.NumPadKey.Digit"
android:autoSizeMaxTextSize="32sp"
android:autoSizeTextType="uniform"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
/> />

View File

@@ -221,10 +221,11 @@ public class KeyguardSecurityContainer extends ConstraintLayout {
public void onEnd(WindowInsetsAnimation animation) { public void onEnd(WindowInsetsAnimation animation) {
if (!mDisappearAnimRunning) { if (!mDisappearAnimRunning) {
endJankInstrument(InteractionJankMonitor.CUJ_LOCKSCREEN_PASSWORD_APPEAR); endJankInstrument(InteractionJankMonitor.CUJ_LOCKSCREEN_PASSWORD_APPEAR);
updateChildren(0 /* translationY */, 1f /* alpha */);
} else { } else {
endJankInstrument(InteractionJankMonitor.CUJ_LOCKSCREEN_PASSWORD_DISAPPEAR); endJankInstrument(InteractionJankMonitor.CUJ_LOCKSCREEN_PASSWORD_DISAPPEAR);
setAlpha(0f);
} }
updateChildren(0 /* translationY */, 1f /* alpha */);
} }
private void updateChildren(int translationY, float alpha) { private void updateChildren(int translationY, float alpha) {