mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 20:34:49 +01:00
Prevent crash
This commit is contained in:
@@ -62,7 +62,11 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
}
|
||||
|
||||
public void load(final Fragment fragment, Bundle args) {
|
||||
run(fragment.getContext(), fragment.getViewLifecycleOwner(), args);
|
||||
try {
|
||||
run(fragment.getContext(), fragment.getViewLifecycleOwner(), args);
|
||||
} catch (IllegalStateException ex) {
|
||||
Log.w(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
|
||||
}
|
||||
}
|
||||
|
||||
@OnLifecycleEvent(Lifecycle.Event.ON_START)
|
||||
|
||||
Reference in New Issue
Block a user