Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d415c32 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am ba789da8: Merge "Setup correct initial guest restrictions" into lmp-dev

* commit 'ba789da811819e316410ee66e0c095f68dfcd40f':
  Setup correct initial guest restrictions
parents 15a64cd5 f5f45bc2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -625,8 +625,9 @@ public class UserManager {
            Settings.Secure.putStringForUser(context.getContentResolver(),
                    Settings.Secure.SKIP_FIRST_USE_HINTS, "1", guest.id);
            try {
                mService.setUserRestrictions(
                        mService.getDefaultGuestRestrictions(), guest.id);
                Bundle guestRestrictions = mService.getDefaultGuestRestrictions();
                guestRestrictions.putBoolean(DISALLOW_SMS, true);
                mService.setUserRestrictions(guestRestrictions, guest.id);
            } catch (RemoteException re) {
                Log.w(TAG, "Could not update guest restrictions");
            }