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

Commit 11f72c0d authored by Zoltan Szatmary-Ban's avatar Zoltan Szatmary-Ban Committed by Android (Google) Code Review
Browse files

Merge "Leave SettingsProvider running if cloning of a setting fails" into lmp-dev

parents d4aaab99 35349352
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -789,8 +789,15 @@ public class SettingsProvider extends ContentProvider {
                            Slog.v(TAG, "putting to additional user "
                                    + mManagedProfiles.get(i).id);
                        }
                        try {
                            insertForUser(Settings.Secure.CONTENT_URI, values,
                                    mManagedProfiles.get(i).id);
                        } catch (SecurityException e) {
                            // Temporary fix, see b/17450158
                            Slog.w(TAG, "Cannot clone request '" + request + "' with value '"
                                    + newValue + "' to managed profile (id "
                                    + mManagedProfiles.get(i).id + ")", e);
                        }
                    }
                } finally {
                    Binder.restoreCallingIdentity(token);