am ba789da8: Merge "Setup correct initial guest restrictions" into lmp-dev
* commit 'ba789da811819e316410ee66e0c095f68dfcd40f': Setup correct initial guest restrictions
This commit is contained in:
@ -625,8 +625,9 @@ public class UserManager {
|
|||||||
Settings.Secure.putStringForUser(context.getContentResolver(),
|
Settings.Secure.putStringForUser(context.getContentResolver(),
|
||||||
Settings.Secure.SKIP_FIRST_USE_HINTS, "1", guest.id);
|
Settings.Secure.SKIP_FIRST_USE_HINTS, "1", guest.id);
|
||||||
try {
|
try {
|
||||||
mService.setUserRestrictions(
|
Bundle guestRestrictions = mService.getDefaultGuestRestrictions();
|
||||||
mService.getDefaultGuestRestrictions(), guest.id);
|
guestRestrictions.putBoolean(DISALLOW_SMS, true);
|
||||||
|
mService.setUserRestrictions(guestRestrictions, guest.id);
|
||||||
} catch (RemoteException re) {
|
} catch (RemoteException re) {
|
||||||
Log.w(TAG, "Could not update guest restrictions");
|
Log.w(TAG, "Could not update guest restrictions");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user