1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-01 12:54:07 +00:00

Collect garbage

This commit is contained in:
M66B 2016-02-13 13:21:18 +01:00
parent a93e536be5
commit a66e6c302d
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View 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;
}