Run task with app context

This commit is contained in:
M66B 2022-04-24 08:20:36 +02:00
parent 9cebad8159
commit 2ba4951e58
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
if (log)
Log.i("Executing task=" + name);
long start = new Date().getTime();
data = onExecute(context, args);
data = onExecute(context.getApplicationContext(), args);
elapsed = new Date().getTime() - start;
if (log)
Log.i("Executed task=" + name + " elapsed=" + elapsed + " ms");