Avoid leaking AccountManagerService via InputStreamBinder

Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
Unpublished 2021-05-02 19:58:14 +02:00
parent 6239e608ae
commit 7632f12f98
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class AccountManagerService extends Service {
@Override
public IBinder onBind(Intent intent) {
if(mBinder == null) {
mBinder = new InputStreamBinder(this, accountManager);
mBinder = new InputStreamBinder(getApplicationContext(), accountManager);
}
return mBinder;
}