mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Unified executor model
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user