From f5450dc54ac85a9d3ec955aec466d9e13f0a136c Mon Sep 17 00:00:00 2001 From: Vavassor Date: Sun, 2 Jul 2017 16:41:33 -0400 Subject: [PATCH] Possible fix for unnecessary thread post reloading (issue #327). --- .../java/com/keylesspalace/tusky/adapter/ThreadAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/ThreadAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/ThreadAdapter.java index 2b9dddfa..9f99f163 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/ThreadAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/ThreadAdapter.java @@ -103,7 +103,7 @@ public class ThreadAdapter extends RecyclerView.Adapter implements AdapterItemRe // In case of refresh, remove old ancestors and descendants first. We'll remove all blindly, // as we have no guarantee on their order to be the same as before int oldSize = statuses.size(); - if (oldSize > 0) { + if (oldSize > 1) { mainStatus = statuses.get(statusIndex); statuses.clear(); notifyItemRangeRemoved(0, oldSize);