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

Commit cd816c18 authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by android-build-merger
Browse files

Merge "Revert "Fix ContentObserver unregister issue"" am: 31419a4a

am: 8625194c

Change-Id: I5025d99e35dd267ffc3a0c0393a24ebb87cc0546
parents 9888af1d 8625194c
Loading
Loading
Loading
Loading
+0 −10
Original line number Original line Diff line number Diff line
@@ -193,11 +193,6 @@ public abstract class ContentObserver {
     */
     */
    private void dispatchChange(boolean selfChange, Uri uri, int userId) {
    private void dispatchChange(boolean selfChange, Uri uri, int userId) {
        if (mHandler == null) {
        if (mHandler == null) {
            synchronized (mLock) {
                if (mTransport == null) {
                    return;
                }
            }
            onChange(selfChange, uri, userId);
            onChange(selfChange, uri, userId);
        } else {
        } else {
            mHandler.post(new NotificationRunnable(selfChange, uri, userId));
            mHandler.post(new NotificationRunnable(selfChange, uri, userId));
@@ -218,11 +213,6 @@ public abstract class ContentObserver {


        @Override
        @Override
        public void run() {
        public void run() {
            synchronized (mLock) {
                if (mTransport == null) {
                    return;
                }
            }
            ContentObserver.this.onChange(mSelfChange, mUri, mUserId);
            ContentObserver.this.onChange(mSelfChange, mUri, mUserId);
        }
        }
    }
    }