actually disable swipe to dismiss when mark as read on scroll is set
This commit is contained in:
parent
c6b14f9b50
commit
7d59182a9b
|
@ -343,9 +343,7 @@ public class HeadlinesFragment extends Fragment {
|
||||||
|
|
||||||
FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.headlines_fab);
|
FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.headlines_fab);
|
||||||
|
|
||||||
boolean enableSwipeToDismiss = m_prefs.getBoolean("headlines_swipe_to_dismiss", true);
|
if (m_prefs.getBoolean("headlines_swipe_to_dismiss", true) && !m_prefs.getBoolean("headlines_mark_read_scroll", false) ) {
|
||||||
|
|
||||||
if (enableSwipeToDismiss) {
|
|
||||||
|
|
||||||
ItemTouchHelper swipeHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.RIGHT) {
|
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()) {
|
if (m_activity.isSmallScreen()) {
|
||||||
m_activity.setTitle(m_feed.title);
|
m_activity.setTitle(m_feed.title);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user