mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Fixed thread pool simple task
This commit is contained in:
parent
74c85fab07
commit
fd8315202f
2 changed files with 3 additions and 1 deletions
|
@ -209,6 +209,8 @@ public class FragmentMessages extends FragmentEx {
|
|||
});
|
||||
|
||||
rvMessage.setHasFixedSize(false);
|
||||
//rvMessage.setItemViewCacheSize(10);
|
||||
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10);
|
||||
LinearLayoutManager llm = new LinearLayoutManager(getContext());
|
||||
rvMessage.setLayoutManager(llm);
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|||
private Bundle args;
|
||||
private Result stored;
|
||||
|
||||
private ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
|
||||
private static ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
|
||||
|
||||
public void load(Context context, LifecycleOwner owner, Bundle args) {
|
||||
run(context, owner, args);
|
||||
|
|
Loading…
Reference in a new issue