Merge "Only animate user list if there's multiple users" into sc-qpr1-dev am: 2c25dc37ee

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15852882

Change-Id: Icf22911b2b7eabf7b3765618ebf581922a7562bb
This commit is contained in:
Peter Kalauskas
2021-09-17 16:51:47 +00:00
committed by Automerger Merge Worker

View File

@@ -103,7 +103,7 @@ public class KeyguardUserSwitcherListView extends AlphaOptimizedLinearLayout {
} }
} }
if (animate) { if (animate && userItemViews.length > 1) {
// AnimationUtils will immediately hide/show the first item in the array. Since the // AnimationUtils will immediately hide/show the first item in the array. Since the
// first view is the current user, we want to manage its visibility separately. // first view is the current user, we want to manage its visibility separately.
// Set first item to null so AnimationUtils ignores it. // Set first item to null so AnimationUtils ignores it.