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

Commit 0bd04ff4 authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am 6b58fde9: Merge "Settings provider needs to send notifications as itself" into jb-mr1-dev

* commit '6b58fde9':
  Settings provider needs to send notifications as itself
parents cb1ec20a 6b58fde9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -344,7 +344,12 @@ public class SettingsProvider extends ContentProvider {
        String notify = uri.getQueryParameter("notify");
        if (notify == null || "true".equals(notify)) {
            final int notifyTarget = isGlobal ? UserHandle.USER_ALL : userHandle;
            final long oldId = Binder.clearCallingIdentity();
            try {
                getContext().getContentResolver().notifyChange(uri, null, true, notifyTarget);
            } finally {
                Binder.restoreCallingIdentity(oldId);
            }
            if (LOCAL_LOGV) Log.v(TAG, "notifying for " + notifyTarget + ": " + uri);
        } else {
            if (LOCAL_LOGV) Log.v(TAG, "notification suppressed: " + uri);