commit | 2df4e144a913b705c50bde929c75744b251967d9 | [log] [tgz] |
---|---|---|
author | daqi <daqi@xiaomi.com> | Wed Jun 28 14:16:13 2017 +0800 |
committer | daqi <daqi@xiaomi.com> | Thu Jul 06 10:09:21 2017 +0800 |
tree | f9078b701e6794227667294510fef18ebc6e2dbf | |
parent | 10c314e19a6b9cdbff9ff8c99ac1923d47966ebb [diff] |
Fix ContentObserver unregister issue [Cause of Defect] In the ContentObserver callback procedure, the binder thread has no sync mechanism with handler thread. The ContentObserver#onChange method can get called after ContentResolver#unregisterContentObserver called in the very low probability. Bug: https://issuetracker.google.com/issues/63154326 Test: manual - check https://github.com/nanjingdaqi/ContentObserverDemo Change-Id: I0e3831eba7a9cc1a5bf0d30abe5dd0ec8259b0d4 Signed-off-by: daqi <daqi@xiaomi.com>