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

Commit 5d5f04b0 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Revert "Fix ContentObserver unregister issue"

This reverts commit 2df4e144. 
It was causing failures in packages/apps/DocumentsUI tests

Bug: 63638102
Bug: 63154326
Change-Id: I51fb54f705f58f159f4fcc30bfed41ababcba950
parent 2df4e144
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);
        }
        }
    }
    }