Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8f9c2b72 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Scene] Decide when to show user switcher on keyguard in repos.

NPVC has a lot of logic in a lot of different methods about when to show
the user switcher. After reading and re-reading, I think it distills
down to config_keyguardUserSwitcher &&
userManager.isUserSwitcherEnabled(qs_show_user_switcher_for_single_user).
This CL adds a flow to that effect and listens to it.

Bug: 300484307
Test: On phone, verify user switcher is never shown (only user avatar if
there are multiple users, nothing if single user)
Test: On tablet, verify user switcher chip is shown if there are multiple
users (or user & guest), not shown if single user
Test: atest KeyguardStatusBarRepositoryImplTest

Change-Id: I5ec9a8a964219fdea3f7addf95f03469585113f2
parent f860443c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment