commit | c0019874835341f5a4d3c429c5858630c9e2c791 | [log] [tgz] |
---|---|---|
author | Tony Mak <tonymak@google.com> | Tue Apr 24 15:30:37 2018 +0100 |
committer | Tony Mak <tonymak@google.com> | Wed Apr 25 12:30:01 2018 +0100 |
tree | 7cbc0dc52f4d074ecde66962c474f18a308df6c0 | |
parent | c72ee1a4f2b10ba3ac43daeb40f2a1135ce3b12a [diff] |
Pipe the user restriction to the admin dialog This change allows us to show different strings for different user restriction. Instead of setting DevicePolicyManager.EXTRA_RESTRICTION everywhere in Settings, EnforcedAdmin object now stores the restriction. So when we are starting the admin dialog with the EnforcedAdmin object, we can set the EXTRA_RESTRICTION bit. Test: make RunSettingsLibRoboTests Bug: 78443458 Change-Id: Iabc1629b9ed18f881cdc8c15ec5e49a4b50f76a4