mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Unified executor model
This commit is contained in:
@@ -61,7 +61,6 @@ import com.google.android.material.tabs.TabLayout;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
public class FragmentOptions extends FragmentBase {
|
||||
private ViewPager pager;
|
||||
@@ -69,9 +68,6 @@ public class FragmentOptions extends FragmentBase {
|
||||
private String searching = null;
|
||||
private SuggestData data = null;
|
||||
|
||||
private final ExecutorService executor =
|
||||
Helper.getBackgroundExecutor(1, "suggest");
|
||||
|
||||
private static final int[] TAB_PAGES = {
|
||||
R.layout.fragment_setup,
|
||||
R.layout.fragment_options_synchronize,
|
||||
@@ -386,8 +382,7 @@ public class FragmentOptions extends FragmentBase {
|
||||
|
||||
return data;
|
||||
}
|
||||
}.setExecutor(executor)
|
||||
.execute(FragmentOptions.this, args, "option:suggest");
|
||||
}.serial().execute(FragmentOptions.this, args, "option:suggest");
|
||||
}
|
||||
|
||||
private void _suggest(String query) {
|
||||
|
||||
Reference in New Issue
Block a user