OSDN Git Service

Require unlocked work profile to change notification settings
authorEran Messeri <eranm@google.com>
Tue, 27 Mar 2018 18:13:47 +0000 (19:13 +0100)
committerEran Messeri <eranm@google.com>
Thu, 29 Mar 2018 13:54:53 +0000 (14:54 +0100)
commite0856e6d99933daf425589b21e620a930dfd7864
tree6918971bc9574d15a2bdd929964283ee00e643d1
parentd467a8bc0f2864e5f0f418a19822b38b75abc809
Require unlocked work profile to change notification settings

Require that the work profile be started and unlocked before the user
can change the notification settings for the work profile.

That prevents leaking of notifications from the work profile, which
could happen when the user set the work profile notifications to show
even if the profile was unlocked (an example scenario is a family member
of the user using the device while the work profile is locked).

Test: Manually with TestDPC
Bug: 75252682
Change-Id: I300d001b7439c0a1d0130d7dbc9ec4c2430be227
src/com/android/settings/notification/LockScreenNotificationPreferenceController.java