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

Commit c7c7f876 authored by Yuri Lin's avatar Yuri Lin
Browse files

Default managed profiles to off on KEY_TYPE adjustments only

Because KEY_TYPE (classification) is the only adjustment (for now) for which we want the work profile to default to off if the user hasn't explicitly turned it on, store a list of users whose preferences for that adjustment have ever changed. Then if the relevant user is a managed profile, we include KEY_TYPE in the denied adjustments if it wasn't explicitly set one way or another by the user.

Also add some more test setup in NotificationAssistantsTest so we don't get different results about what user is a profile user depending on which mock (NMS, UserManager, UserManagerInternal...) we ask.

Fixes: 415768865
Test: NotificationAssistantsTest, manual via behavior + checking policy xml
Flag: android.app.notification_classification_ui
Change-Id: Ie2e27503cc42a451d954eb66703b01628130a213
parent 27cd29d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment