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

Commit 48eda689 authored by spooja's avatar spooja Committed by Steve Kondik
Browse files

frameworks/base: Fix ContentService JNI leaks

- A list of ObserverCall(s) is created by ContentService as
  it notifies changes to the registered content observers.
  Clear observer after use.

- If same Observer and same URI are registered, the callback
  functions are called multiple times when data identified by
  a given content URI changes. It makes system slow and it
  cause ANR sometimes. And when run
  unregisterContentObserver(), just one deleted but others
  are remained in mObservers. So add prevent code to avoid
  to duplicated registration of Observers

CRs-Fixed: 868634

Change-Id: I5906f581f4beaed04af09e5b9e3999f67d94f1fc
parent 105fc930
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment