1. update the fading effect for action button.
2. the action button will depend on whether the card above it has the
second line label.
3. update the options menu item background to 1 shade lighter grey.
Test: manual, see demo:
https: //drive.google.com/file/d/1TLc6t1Ola6G_QiU0yadWdh1nLbQnEJ7g/view?usp=sharing&resourcekey=0-f1qKR8nLjvo0VrtLqKBE9w
Bug: 190760488
Bug: 190531125
Change-Id: I012694e9ff0a252f6ce918043f6bf7dcd01ba97e
Bubbles are counted as active notifications even if its shade notif is
hidden so we need to explicitly hide the footer when showing EmptyShadeView.
Fixes: 186037856
Test: have empty shade and bubble => footer hidden
Change-Id: Ia5798b9b3bd3f50a9028374941a8dd437365fcca
Create a new frameworks config: config_guestUserAutoCreated.
If true,
- Device should always have a guest user available.
- Instead of showing "Add guest", the UI will show "Guest", and instead
of "Remove guest", there will be an option to "Reset guest"
- Guest user is always created on boot if it does not already exist
- New guest user is created any time current guest user is removed
For now, these behaviors will be handled by System UI and Settings.
In addition, a few changes were made to System UI to simplify the code.
These changes may also affect devices running without the new config:
- Move GuestResumeSessionReceiver.wipeGuestSession() to
UserSwitcherController
- New method: UserSwitcherController.createGuest()
- Introduce dependency from KeyguardViewMediator to
UserSwitcherController
- Introduce dependency from GuestResumeSessionReceiver to
UserSwitcherController
Bug: 188542158
Test: With config_guestUserAutoCreated=true, remove all guest users
using adb (`adb shell cmd user list -v --all` to find the user
ids, then remove each guest user with `adb shell pm remove-user
<id>`), reboot device, check that there is a new guest on boot.
Test: With config_guestUserAutoCreated=true, reboot device when there is
already a guest user, confirm that guest user was not wiped after
reboot is completed.
Test: With config_guestUserAutoCreated=true, switch to guest user,
select "Reset guest" from QS tile, select "Reset". Phone should
switch back to last active user, and QS tile should now show
"Guest" instead of "Add guest". Run `adb shell cmd user list -v
--all` to confirm guest has a new user id.
Test: With config_guestUserAutoCreated=false, confirm that "Add guest"
and "Remove guest" features remain unchanged
Change-Id: Ib1c8dd0a0796d95681167f51e12e3f4be21345af
Merged-In: Ib1c8dd0a0796d95681167f51e12e3f4be21345af
WakefulessLifecycle is driven by KeyguardService, which doesn't always
exist. When it doesn't exist, mWakefulness will remain set to
WAKEFULNESS_ASLEEP, which prevents some UI bits from showing up. The
most important one to fix is VolumeDialogControllerImpl.
We also need to set the default value of mDeviceInteractive to true
since the callback will never come on a device without a keyguard
service.
Test: atest SystemUITests
Fix: 190357428
Change-Id: Ib4f67e756c9549d919ec8ae640abca044d7d651f
If the phone configuration changes (e.g. we switch orientations)
mid-animation into the corner, the destination bounds are no longer
correct, so we end up in a weird state. Ending the screenshot
animation early on configuration changes fixes this problem.
Bug: 190545541
Fix: 190545541
Test: manual (take screenshot in landscape, rotate while animation
is happening, observe results)
Change-Id: I53c44263f7994ee6c5c4f7a0b1cbb7df36b24afe
The logic needed a tweak because the HideDividersDuringExpand config wasn't being applied to the user-locked-expansion.
Fixes: 191187506
Test: expand and collapse groups a bunch
Change-Id: Ifc111233a041c14f58f921db55fd06f2040e1316