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

Commit f5f45bc2 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Setup correct initial guest restrictions" into lmp-dev

parents 68f96d8d 8616af1a
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");
            }