mirror of https://github.com/M66B/FairEmail.git
Run task with app context
This commit is contained in:
parent
9cebad8159
commit
2ba4951e58
|
@ -173,7 +173,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||||
if (log)
|
if (log)
|
||||||
Log.i("Executing task=" + name);
|
Log.i("Executing task=" + name);
|
||||||
long start = new Date().getTime();
|
long start = new Date().getTime();
|
||||||
data = onExecute(context, args);
|
data = onExecute(context.getApplicationContext(), args);
|
||||||
elapsed = new Date().getTime() - start;
|
elapsed = new Date().getTime() - start;
|
||||||
if (log)
|
if (log)
|
||||||
Log.i("Executed task=" + name + " elapsed=" + elapsed + " ms");
|
Log.i("Executed task=" + name + " elapsed=" + elapsed + " ms");
|
||||||
|
|
Loading…
Reference in New Issue