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

Commit 35722935 authored by Jeff Hamilton's avatar Jeff Hamilton
Browse files

Fix a BroadcastReceiver leak.

The AccountTypeManager singleton is registered
in the ContactsApplication's getSystemService()
but the call to get the singleton was using the
given context not its .getApplicationContext().
thereby leaking when it was passed an Activity.

This fix seems cleaner then making sure each
caller passes the proper type of context.

Change-Id: I324a05449770e35bfaffb6773a394d63e9ddfb59
parent 485f5eb5
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