mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Collect garbage
This commit is contained in:
parent
a93e536be5
commit
a66e6c302d
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
package eu.faircode.netguard;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
|
@ -34,7 +35,7 @@ public class DownloadTask extends AsyncTask<Object, Integer, Object> {
|
|||
void onException(Throwable ex);
|
||||
}
|
||||
|
||||
public DownloadTask(Context context, URL url, File file, Listener listener) {
|
||||
public DownloadTask(Activity context, URL url, File file, Listener listener) {
|
||||
this.context = context;
|
||||
this.url = url;
|
||||
this.file = file;
|
||||
|
|
|
@ -52,7 +52,7 @@ public class IAB implements ServiceConnection {
|
|||
}
|
||||
|
||||
public IAB(Delegate delegate, Context context) {
|
||||
this.context = context;
|
||||
this.context = context.getApplicationContext();
|
||||
this.delegate = delegate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue