Merge "Only animate user list if there's multiple users" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c25dc37ee
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user