mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-01 12:08:46 +00:00
Set query and fetch executors to low priority again
This commit is contained in:
parent
c14af37a71
commit
3da3d14a92
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ public abstract class DB extends RoomDatabase {
|
|||
|
||||
private static DB sInstance;
|
||||
private static ExecutorService executor = Executors.newFixedThreadPool(
|
||||
Runtime.getRuntime().availableProcessors(), Helper.foregroundThreadFactory);
|
||||
Runtime.getRuntime().availableProcessors(), Helper.backgroundThreadFactory);
|
||||
|
||||
private static final String DB_NAME = "fairemail";
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public class ViewModelMessages extends ViewModel {
|
|||
private AdapterMessage.ViewType last = AdapterMessage.ViewType.UNIFIED;
|
||||
private Map<AdapterMessage.ViewType, Model> models = new HashMap<>();
|
||||
|
||||
private ExecutorService executor = Executors.newCachedThreadPool(Helper.foregroundThreadFactory);
|
||||
private ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
|
||||
|
||||
private static final int LOCAL_PAGE_SIZE = 100;
|
||||
private static final int REMOTE_PAGE_SIZE = 10;
|
||||
|
|
Loading…
Reference in a new issue