Merge "Revert "Fix ContentObserver unregister issue""
am: 31419a4ad4
Change-Id: I455be72533c24ceb5ea352774ded30d0c0a2367f
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user