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

Commit 308093f5 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Clear identity when asking for other users.

Bug: 76394640
Test: nope
Change-Id: I8d1530ed01669947e91725e905240729e31c7234
parent a5b29fff
Loading
Loading
Loading
Loading
+10 −5
Original line number Original line Diff line number Diff line
@@ -2754,12 +2754,17 @@ public class SettingsProvider extends ContentProvider {
            mGenerationRegistry.incrementGeneration(key);
            mGenerationRegistry.incrementGeneration(key);


            if (isGlobalSettingsKey(key)) {
            if (isGlobalSettingsKey(key)) {
                final long token = Binder.clearCallingIdentity();
                try {
                    if (Global.LOCATION_GLOBAL_KILL_SWITCH.equals(name)) {
                    if (Global.LOCATION_GLOBAL_KILL_SWITCH.equals(name)) {
                        // When the global kill switch is updated, send the
                        // When the global kill switch is updated, send the
                        // change notification for the location setting.
                        // change notification for the location setting.
                        notifyLocationChangeForRunningUsers();
                        notifyLocationChangeForRunningUsers();
                    }
                    }
                    notifyGlobalSettingChangeForRunningUsers(key, name);
                    notifyGlobalSettingChangeForRunningUsers(key, name);
                } finally {
                    Binder.restoreCallingIdentity(token);
                }
            } else {
            } else {
                final int userId = getUserIdFromKey(key);
                final int userId = getUserIdFromKey(key);
                final Uri uri = getNotificationUriFor(key, name);
                final Uri uri = getNotificationUriFor(key, name);