actually disable swipe to dismiss when mark as read on scroll is set

This commit is contained in:
Andrew Dolgov 2017-06-01 23:55:49 +03:00
parent c6b14f9b50
commit 7d59182a9b

View File

@ -343,9 +343,7 @@ public class HeadlinesFragment extends Fragment {
FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.headlines_fab);
boolean enableSwipeToDismiss = m_prefs.getBoolean("headlines_swipe_to_dismiss", true);
if (enableSwipeToDismiss) {
if (m_prefs.getBoolean("headlines_swipe_to_dismiss", true) && !m_prefs.getBoolean("headlines_mark_read_scroll", false) ) {
ItemTouchHelper swipeHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.RIGHT) {
@ -527,8 +525,6 @@ public class HeadlinesFragment extends Fragment {
}
});
//if (!enableSwipeToDismiss) registerForContextMenu(m_list);
if (m_activity.isSmallScreen()) {
m_activity.setTitle(m_feed.title);
}