OSDN Git Service

Fix up user switch flow a little.
authorRakesh Iyer <rni@google.com>
Tue, 30 May 2017 18:02:18 +0000 (11:02 -0700)
committerRakesh Iyer <rni@google.com>
Thu, 1 Jun 2017 18:53:18 +0000 (11:53 -0700)
commit33d6ce4c56dc63190affccd23bb0fafcb0286100
tree95cce5f6f2dbb0e5994176f0411c6fc05e1781dc
parent14c991cf97ec2505ff30d8fbb29f241a846feafe
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
packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml
packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java
packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java