OSDN Git Service

Write restriction bundle right away for required apps.
authorAmith Yamasani <yamasani@google.com>
Tue, 21 May 2013 23:07:28 +0000 (16:07 -0700)
committerAmith Yamasani <yamasani@google.com>
Tue, 21 May 2013 23:07:28 +0000 (16:07 -0700)
commit0b2781ae537e6d3d27863080eea0a0a5fa6c83b8
tree86b3f6798cb350a0b4741e4802d8c1b476f398a3
parentf88e6e5ae6a5a31d47677dcbd9be2b26c6615136
Write restriction bundle right away for required apps.

User shouldn't have to go tap on the settings icon for an app that is ON by default
in a restricted profile. This way apps can write some defaults to the restricted
profile when it is created.

The app entry is also automatically removed from the list if there are no visible
restrictions.

Bug: 9074051

Also fix an incorrect dialog label. Bug: 9068877

Change-Id: I2a7ddc31fe695f58611d2ba36a8bf541b7817b10
src/com/android/settings/users/AppRestrictionsFragment.java