Unified executor model

This commit is contained in:
M66B
2022-12-13 10:52:39 +01:00
parent 101371854b
commit 6988d4c552
33 changed files with 147 additions and 297 deletions

View File

@@ -59,7 +59,6 @@ import androidx.constraintlayout.widget.Group;
import androidx.preference.PreferenceManager;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.function.Consumer;
public class FragmentOptionsNotifications extends FragmentBase implements SharedPreferences.OnSharedPreferenceChangeListener {
@@ -125,9 +124,6 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
private Group grpBackground;
private Group grpTiles;
private static final ExecutorService executor =
Helper.getBackgroundExecutor(1, "notifications");
private final static String[] RESET_OPTIONS = new String[]{
"notify_newest_first", "notify_summary",
"notify_trash", "notify_junk", "notify_block_sender", "notify_archive", "notify_move",
@@ -817,7 +813,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
ComponentName.createRelative(context, cls.getName()),
context.getString(title),
Icon.createWithResource(context, icon),
executor,
Helper.getParallelExecutor(),
new Consumer<Integer>() {
@Override
public void accept(Integer result) {