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

Skip to content
Commit dabd1ade authored by shreyacsingh's avatar shreyacsingh
Browse files

Disallow work profiles on non-initial users in headless

Modified 'canHaveProfile' method to ensure we allow work profiles only on initial user and not additional users- in both headless and non-headless environment.For that we can use isMain() as on non-headless, the system user(initial) is main,and on headless the first secondary user(initial) is main.

Test: atest
Bug: 266053489
Fix: 266053489

Change-Id: Ia959213b03ea7b36d113fd13e23fca187fe3f59d
parent 6b5bf270
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