diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java
index 701e9a83b..2782b7a39 100644
--- a/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java
+++ b/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java
@@ -73,6 +73,7 @@ public class ConversationsOverviewFragment extends XmppFragment {
private FragmentConversationsOverviewBinding binding;
private ConversationAdapter conversationsAdapter;
private XmppActivity activity;
+ private float mSwipeEscapeVelocity = 0f;
private PendingActionHelper pendingActionHelper = new PendingActionHelper();
private ItemTouchHelper.SimpleCallback callback = new ItemTouchHelper.SimpleCallback(0,LEFT|RIGHT) {
@@ -82,6 +83,11 @@ public class ConversationsOverviewFragment extends XmppFragment {
return false;
}
+ @Override
+ public float getSwipeEscapeVelocity (float defaultValue) {
+ return mSwipeEscapeVelocity;
+ }
+
@Override
public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder,
float dX, float dY, int actionState, boolean isCurrentlyActive) {
@@ -232,6 +238,8 @@ public class ConversationsOverviewFragment extends XmppFragment {
@Override
public View onCreateView(final LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Log.d(Config.LOGTAG, "onCreateView");
+ this.mSwipeEscapeVelocity = getResources().getDimension(R.dimen.swipe_escape_velocity);
+ Log.d(Config.LOGTAG,"swipe escape velocity: "+this.mSwipeEscapeVelocity);
this.binding = DataBindingUtil.inflate(inflater, R.layout.fragment_conversations_overview, container, false);
this.binding.fab.setOnClickListener((view) -> StartConversationActivity.launch(getActivity()));
diff --git a/src/main/res/values/dimens.xml b/src/main/res/values/dimens.xml
index 52e02559a..bf7d5b353 100644
--- a/src/main/res/values/dimens.xml
+++ b/src/main/res/values/dimens.xml
@@ -22,4 +22,6 @@
4dp
8dp
+
+ 1200dp