From 5bdfecad3b1b30bbc9ba3b2f7e6197ba28557e75 Mon Sep 17 00:00:00 2001 From: Daniel Savory Date: Sat, 18 Feb 2023 00:39:15 +1100 Subject: [PATCH 1/2] Enable swipe actions in individual feed view --- app/src/main/kotlin/entries/EntriesFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/entries/EntriesFragment.kt b/app/src/main/kotlin/entries/EntriesFragment.kt index 1f4cef6e..d519d9b8 100644 --- a/app/src/main/kotlin/entries/EntriesFragment.kt +++ b/app/src/main/kotlin/entries/EntriesFragment.kt @@ -373,7 +373,7 @@ class EntriesFragment : Fragment(), OnItemReselectedListener { private fun createTouchHelper(): ItemTouchHelper? { return when (args.filter) { - EntriesFilter.NotBookmarked -> { + EntriesFilter.NotBookmarked, is EntriesFilter.BelongToFeed -> { ItemTouchHelper(object : SwipeHelper( requireContext(), R.drawable.ic_baseline_visibility_24, From 9caed5adf5c8abd57292f2ded62eba076ce6b22a Mon Sep 17 00:00:00 2001 From: Daniel Savory Date: Sat, 18 Feb 2023 00:41:47 +1100 Subject: [PATCH 2/2] enable pull-to-refresh in individual feed view --- app/src/main/kotlin/entries/EntriesFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/entries/EntriesFragment.kt b/app/src/main/kotlin/entries/EntriesFragment.kt index d519d9b8..773b5b42 100644 --- a/app/src/main/kotlin/entries/EntriesFragment.kt +++ b/app/src/main/kotlin/entries/EntriesFragment.kt @@ -129,7 +129,7 @@ class EntriesFragment : Fragment(), OnItemReselectedListener { private fun initSwipeRefresh() { binding.swipeRefresh.apply { when (args.filter) { - is EntriesFilter.NotBookmarked -> { + is EntriesFilter.NotBookmarked, is EntriesFilter.BelongToFeed -> { isEnabled = true setOnRefreshListener { model.onPullRefresh() } }