From 3faf951f4779e3f356740ecb564b0ea295ccf9c7 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 13 Nov 2017 14:51:45 +0100 Subject: [PATCH] disable swipe to left to dismiss conversation --- .../java/eu/siacs/conversations/ui/ConversationActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index 941e40e18..1357cf4e0 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -206,9 +206,10 @@ public class ConversationActivity extends XmppActivity transaction.replace(R.id.selected_conversation, this.mConversationFragment, "conversation"); transaction.commit(); - listView = (EnhancedListView) findViewById(R.id.list); + this.listView = findViewById(R.id.list); this.listAdapter = new ConversationAdapter(this, conversationList); - listView.setAdapter(this.listAdapter); + this.listView.setAdapter(this.listAdapter); + this.listView.setSwipeDirection(EnhancedListView.SwipeDirection.END); final ActionBar actionBar = getActionBar(); if (actionBar != null) {