OSDN Git Service

Add policy transparency to disallow remove user.
authorJonathan Scott <scottjonathan@google.com>
Wed, 12 Sep 2018 13:40:15 +0000 (14:40 +0100)
committerJonathan Scott <scottjonathan@google.com>
Wed, 19 Sep 2018 08:32:35 +0000 (09:32 +0100)
commitba3b68686d8a5cba549d2978d0a86d442498c5f9
treee80455e103786281c7c6cb3afd73d76a05febe63
parentbe04ed9e31ffe9a63506b50b4cc6778c27ba156b
Add policy transparency to disallow remove user.

On the Settings > System -> Multiple users screen, ensures that the"Delete from this device" menu is always available, but is disabled and includes policy information when DISABLE_REMOVE_USER is set.

Change-Id: Ia6c6cfb360f35a6e447bf9d85d2472ac11dde1ac
Fix: 113807450
Test: m ROBOTEST_FILTER=UserSettingsTest -j40 RunSettingsRoboTests; CTS Verifier Device Owner Tests/Policy transparency test/Disallow remove user.
src/com/android/settings/users/UserSettings.java
tests/robotests/src/com/android/settings/users/UserSettingsTest.java