mirror of https://github.com/M66B/FairEmail.git
Set query and fetch executors to low priority again
This commit is contained in:
parent
c14af37a71
commit
3da3d14a92
|
@ -97,7 +97,7 @@ public abstract class DB extends RoomDatabase {
|
||||||
|
|
||||||
private static DB sInstance;
|
private static DB sInstance;
|
||||||
private static ExecutorService executor = Executors.newFixedThreadPool(
|
private static ExecutorService executor = Executors.newFixedThreadPool(
|
||||||
Runtime.getRuntime().availableProcessors(), Helper.foregroundThreadFactory);
|
Runtime.getRuntime().availableProcessors(), Helper.backgroundThreadFactory);
|
||||||
|
|
||||||
private static final String DB_NAME = "fairemail";
|
private static final String DB_NAME = "fairemail";
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class ViewModelMessages extends ViewModel {
|
||||||
private AdapterMessage.ViewType last = AdapterMessage.ViewType.UNIFIED;
|
private AdapterMessage.ViewType last = AdapterMessage.ViewType.UNIFIED;
|
||||||
private Map<AdapterMessage.ViewType, Model> models = new HashMap<>();
|
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 LOCAL_PAGE_SIZE = 100;
|
||||||
private static final int REMOTE_PAGE_SIZE = 10;
|
private static final int REMOTE_PAGE_SIZE = 10;
|
||||||
|
|
Loading…
Reference in New Issue