mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Prevent crash
This commit is contained in:
@@ -325,8 +325,12 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
|
||||
int executing = getCount();
|
||||
Log.i("Remaining tasks=" + executing + "/" + tasks.size());
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(new Intent(ACTION_TASK_COUNT).putExtra("count", executing));
|
||||
if (context == null)
|
||||
Log.e("Context is null");
|
||||
else {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(new Intent(ACTION_TASK_COUNT).putExtra("count", executing));
|
||||
}
|
||||
}
|
||||
|
||||
protected void onPreExecute(Bundle args) {
|
||||
|
||||
Reference in New Issue
Block a user