From 2a6d584947820c92a9786f07689bea9d8ba73360 Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Thu, 23 Dec 2021 13:56:24 +0000 Subject: [PATCH] Fixing keyguard user switcher height after collapsing User switcher still had expanded flight after being collapsed - caused by all children views (of type KeyguardUserDetailItemView) still being visible but having alpha of 0. The function to make them GONE was called too early and with improper value, so they were never GONE. Fix is to make them VISIBLE before animating opening user switcher and make them GONE only after closing animation is finished. Fixes: 210121179 Test: open keyguard user switcher and close it -> views below should move back to their previous positions Change-Id: I76ea8651b19ef7ae931e6c14951d804a85c237ed --- .../policy/KeyguardUserSwitcherController.java | 1 - .../policy/KeyguardUserSwitcherListView.java | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcherController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcherController.java index f83a97b9f6812..8e4778e15de72 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcherController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcherController.java @@ -246,7 +246,6 @@ public class KeyguardUserSwitcherController extends ViewController