mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Run task with app context
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user