mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +01:00
Disable pre-fetching in Threaded RecyclerView as a workaround for #1289
This commit is contained in:
@@ -89,6 +89,8 @@ public abstract class ThreadListActivity<G extends NamedGroup, I extends ThreadI
|
|||||||
textInput.setListener(this);
|
textInput.setListener(this);
|
||||||
list = findViewById(R.id.list);
|
list = findViewById(R.id.list);
|
||||||
layoutManager = new LinearLayoutManager(this);
|
layoutManager = new LinearLayoutManager(this);
|
||||||
|
// FIXME pre-fetching messes with read state, find better solution #1289
|
||||||
|
layoutManager.setItemPrefetchEnabled(false);
|
||||||
list.setLayoutManager(layoutManager);
|
list.setLayoutManager(layoutManager);
|
||||||
adapter = createAdapter(layoutManager);
|
adapter = createAdapter(layoutManager);
|
||||||
list.setAdapter(adapter);
|
list.setAdapter(adapter);
|
||||||
|
|||||||
Reference in New Issue
Block a user