mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Task names
This commit is contained in:
@@ -51,34 +51,18 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
|
||||
private static ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
|
||||
|
||||
public void execute(Context context, LifecycleOwner owner, Bundle args) {
|
||||
execute(context, owner, args, null);
|
||||
}
|
||||
|
||||
public void execute(Context context, LifecycleOwner owner, Bundle args, String name) {
|
||||
run(context, owner, args, name);
|
||||
}
|
||||
|
||||
public void execute(LifecycleService service, Bundle args) {
|
||||
execute(service, args, null);
|
||||
}
|
||||
|
||||
public void execute(LifecycleService service, Bundle args, String name) {
|
||||
run(service, service, args, name);
|
||||
}
|
||||
|
||||
public void execute(AppCompatActivity activity, Bundle args) {
|
||||
execute(activity, args, null);
|
||||
}
|
||||
|
||||
public void execute(AppCompatActivity activity, Bundle args, String name) {
|
||||
run(activity, activity, args, name);
|
||||
}
|
||||
|
||||
public void execute(Fragment fragment, Bundle args) {
|
||||
execute(fragment, args, null);
|
||||
}
|
||||
|
||||
public void execute(final Fragment fragment, Bundle args, String name) {
|
||||
try {
|
||||
run(fragment.getContext(), fragment.getViewLifecycleOwner(), args, name);
|
||||
|
||||
Reference in New Issue
Block a user