1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 08:14:45 +00:00

More simple task names

This commit is contained in:
M66B 2019-01-06 17:55:20 +00:00
parent 4c53f9b5b1
commit 6d0a61f9fc

View file

@ -52,15 +52,27 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
private static ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
public void execute(Context context, LifecycleOwner owner, Bundle args) {
run(context, owner, args, null);
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) {
run(service, service, args, null);
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) {
run(activity, activity, args, null);
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) {