|
|
@ -509,7 +509,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
rvMessage.setHasFixedSize(false);
|
|
|
|
rvMessage.setHasFixedSize(false);
|
|
|
|
rvMessage.setItemViewCacheSize(10); // Default: 2
|
|
|
|
|
|
|
|
|
|
|
|
int threads = prefs.getInt("query_threads", 4);
|
|
|
|
|
|
|
|
if (threads >= 4)
|
|
|
|
|
|
|
|
rvMessage.setItemViewCacheSize(10); // Default: 2
|
|
|
|
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5
|
|
|
|
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5
|
|
|
|
|
|
|
|
|
|
|
|
final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
|
|
|
|
final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
|
|
|
|