Fix swiping on conversation overview

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java | 6 
1 file changed, 5 insertions(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java 🔗

@@ -385,11 +385,14 @@ public class ConversationsOverviewFragment extends XmppFragment {
 
 	@Override
 	public void onBackendConnected() {
+		refresh();
+	}
+
+	private void setupSwipe() {
 		if (this.touchHelper == null && (activity.xmppConnectionService == null || !activity.xmppConnectionService.isOnboarding())) {
 			this.touchHelper = new ItemTouchHelper(this.callback);
 			this.touchHelper.attachToRecyclerView(this.binding.list);
 		}
-		refresh();
 	}
 
 	@Override
@@ -503,6 +506,7 @@ public class ConversationsOverviewFragment extends XmppFragment {
 		} else {
 			binding.fab.setVisibility(View.VISIBLE);
 		}
+		setupSwipe();
 	}
 
 	private void setScrollPosition(ScrollState scrollPosition) {