From 33d6ce4c56dc63190affccd23bb0fafcb0286100 Mon Sep 17 00:00:00 2001 From: Rakesh Iyer Date: Tue, 30 May 2017 11:02:18 -0700 Subject: [PATCH] Fix up user switch flow a little. - Remove the long click listeners since the deletion flow wasn't very discoverable or good anyway. Deletion is better accomplished in settings. - The lock screen shows up immediately after user switch and gets called to be shown quite a few times in not very deterministic order. Now, we replace the user grid view with an infinite progress bar while the switch is in progress so it looks more natural. - Switch the background to solid black like in the mocks. Note that this does not fix the case of the lock screen showing up briefly when switching using the notification shade. That will be cleaned up when we replace that view with the UserGridView. Test: Rebooted and verified lock screen still works fine. Bug: 36454400 Change-Id: I19ad8e9305d93a069294e910998749f1f0386b5b --- .../layout/car_fullscreen_user_switcher.xml | 87 +++++++++++-------- .../statusbar/car/FullscreenUserSwitcher.java | 65 +++++++++++++- .../systemui/statusbar/car/UserGridView.java | 66 ++++++-------- 3 files changed, 141 insertions(+), 77 deletions(-) diff --git a/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml b/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml index e0438369762c9..c82eddc3a83a4 100644 --- a/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml +++ b/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml @@ -14,41 +14,58 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + - - - - - -