mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Skip progress when destroyed
This commit is contained in:
@@ -408,7 +408,8 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
onProgress(status, data);
|
||||
if (!destroyed)
|
||||
onProgress(status, data);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user