From 9e7021a717b2c0dbe2f56c85c52ffcb3e064a138 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 31 May 2017 16:52:25 +0300 Subject: [PATCH] disable swipe to dismiss if auto mark as read is enabled --- .../src/main/java/org/fox/ttrss/HeadlinesFragment.java | 2 +- org.fox.ttrss/src/main/res/xml/preferences.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index 44f10a00..9e9cf243 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -371,7 +371,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, m_animationAdapter.setAbsListView(m_list); m_list.setAdapter(m_animationAdapter); - if (enableSwipeToDismiss) { + if (enableSwipeToDismiss && !m_prefs.getBoolean("headlines_mark_read_scroll", false)) { TimedUndoAdapter swipeUndoAdapter = new TimedUndoAdapter(m_adapter, m_activity, new OnDismissCallback() { diff --git a/org.fox.ttrss/src/main/res/xml/preferences.xml b/org.fox.ttrss/src/main/res/xml/preferences.xml index 43ed1bb0..050f7763 100755 --- a/org.fox.ttrss/src/main/res/xml/preferences.xml +++ b/org.fox.ttrss/src/main/res/xml/preferences.xml @@ -86,6 +86,7 @@ @@ -103,6 +104,7 @@