disable swipe to dismiss if auto mark as read is enabled
This commit is contained in:
parent
3b1a0b9cb6
commit
9e7021a717
@ -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() {
|
||||
|
@ -86,6 +86,7 @@
|
||||
|
||||
<org.fox.ttrss.util.LessBrokenSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:dependency="headlines_mark_read_scroll"
|
||||
android:key="headlines_swipe_to_dismiss"
|
||||
android:summary="@string/pref_headlines_swipe_to_dismiss_long"
|
||||
android:title="@string/pref_headlines_swipe_to_dismiss" />
|
||||
@ -103,6 +104,7 @@
|
||||
|
||||
<org.fox.ttrss.util.LessBrokenSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:disableDependentsState="true"
|
||||
android:key="headlines_mark_read_scroll"
|
||||
android:summary="@string/pref_headlines_mark_read_scroll_long"
|
||||
android:title="@string/pref_headlines_mark_read_scroll" />
|
||||
|
Loading…
Reference in New Issue
Block a user