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

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

Merge "Fix ContentObserver unregister issue" am: 09b6988e am: 481d92c5 am: aee5787b

am: 16ff7bc8

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

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