~singpolyma/cheogram-android

65744ae08c50df769bc96e47e6c242760e344e0e — Stephen Paul Weber 1 year, 18 days ago 1b3b7f0
Fix swiping on conversation overview
1 files changed, 5 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java +5 -1
@@ 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) {