Merge "Merge "Only animate user list if there's multiple users" into sc-v2-dev am: 4417daeae4" into sc-v2-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2021-09-02 23:28:26 +00:00
committed by Android (Google) Code Review

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
// first view is the current user, we want to manage its visibility separately.
// Set first item to null so AnimationUtils ignores it.