- Removes pull to refresh from gallery
This commit is contained in:
+19
-41
@@ -135,7 +135,6 @@ import com.vitorpamplona.amethyst.ui.components.TranslatableRichTextViewer
|
|||||||
import com.vitorpamplona.amethyst.ui.components.ZoomableImageDialog
|
import com.vitorpamplona.amethyst.ui.components.ZoomableImageDialog
|
||||||
import com.vitorpamplona.amethyst.ui.dal.UserProfileReportsFeedFilter
|
import com.vitorpamplona.amethyst.ui.dal.UserProfileReportsFeedFilter
|
||||||
import com.vitorpamplona.amethyst.ui.feeds.FeedState
|
import com.vitorpamplona.amethyst.ui.feeds.FeedState
|
||||||
import com.vitorpamplona.amethyst.ui.feeds.RefresheableBox
|
|
||||||
import com.vitorpamplona.amethyst.ui.feeds.ScrollStateKeys
|
import com.vitorpamplona.amethyst.ui.feeds.ScrollStateKeys
|
||||||
import com.vitorpamplona.amethyst.ui.navigation.INav
|
import com.vitorpamplona.amethyst.ui.navigation.INav
|
||||||
import com.vitorpamplona.amethyst.ui.navigation.routeToMessage
|
import com.vitorpamplona.amethyst.ui.navigation.routeToMessage
|
||||||
@@ -1565,17 +1564,13 @@ fun TabNotesNewThreads(
|
|||||||
nav: INav,
|
nav: INav,
|
||||||
) {
|
) {
|
||||||
Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
Column(
|
RefresheableFeedView(
|
||||||
modifier = Modifier.padding(vertical = 0.dp),
|
feedViewModel,
|
||||||
) {
|
null,
|
||||||
RefresheableFeedView(
|
enablePullRefresh = false,
|
||||||
feedViewModel,
|
accountViewModel = accountViewModel,
|
||||||
null,
|
nav = nav,
|
||||||
enablePullRefresh = false,
|
)
|
||||||
accountViewModel = accountViewModel,
|
|
||||||
nav = nav,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1586,21 +1581,16 @@ fun TabNotesConversations(
|
|||||||
nav: INav,
|
nav: INav,
|
||||||
) {
|
) {
|
||||||
Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
Column(
|
RefresheableFeedView(
|
||||||
modifier = Modifier.padding(vertical = 0.dp),
|
feedViewModel,
|
||||||
) {
|
null,
|
||||||
RefresheableFeedView(
|
enablePullRefresh = false,
|
||||||
feedViewModel,
|
accountViewModel = accountViewModel,
|
||||||
null,
|
nav = nav,
|
||||||
enablePullRefresh = false,
|
)
|
||||||
accountViewModel = accountViewModel,
|
|
||||||
nav = nav,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalFoundationApi::class)
|
|
||||||
@Composable
|
@Composable
|
||||||
fun TabGallery(
|
fun TabGallery(
|
||||||
feedViewModel: NostrUserProfileGalleryFeedViewModel,
|
feedViewModel: NostrUserProfileGalleryFeedViewModel,
|
||||||
@@ -1609,9 +1599,7 @@ fun TabGallery(
|
|||||||
) {
|
) {
|
||||||
LaunchedEffect(Unit) { feedViewModel.invalidateData() }
|
LaunchedEffect(Unit) { feedViewModel.invalidateData() }
|
||||||
|
|
||||||
// Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
|
|
||||||
RefresheableBox(feedViewModel, true) {
|
|
||||||
SaveableGridFeedState(feedViewModel, scrollStateKey = ScrollStateKeys.PROFILE_GALLERY) { listState ->
|
SaveableGridFeedState(feedViewModel, scrollStateKey = ScrollStateKeys.PROFILE_GALLERY) { listState ->
|
||||||
RenderGalleryFeed(
|
RenderGalleryFeed(
|
||||||
feedViewModel,
|
feedViewModel,
|
||||||
@@ -1622,8 +1610,6 @@ fun TabGallery(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@Composable
|
/*@Composable
|
||||||
@@ -1736,9 +1722,7 @@ fun TabFollows(
|
|||||||
WatchFollowChanges(baseUser, feedViewModel)
|
WatchFollowChanges(baseUser, feedViewModel)
|
||||||
|
|
||||||
Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
Column {
|
RefreshingFeedUserFeedView(feedViewModel, accountViewModel, nav, enablePullRefresh = false)
|
||||||
RefreshingFeedUserFeedView(feedViewModel, accountViewModel, nav, enablePullRefresh = false)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1752,9 +1736,7 @@ fun TabFollowers(
|
|||||||
WatchFollowerChanges(baseUser, feedViewModel)
|
WatchFollowerChanges(baseUser, feedViewModel)
|
||||||
|
|
||||||
Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
Column {
|
RefreshingFeedUserFeedView(feedViewModel, accountViewModel, nav, enablePullRefresh = false)
|
||||||
RefreshingFeedUserFeedView(feedViewModel, accountViewModel, nav, enablePullRefresh = false)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1788,7 +1770,7 @@ fun TabReceivedZaps(
|
|||||||
WatchZapsAndUpdateFeed(baseUser, zapFeedViewModel)
|
WatchZapsAndUpdateFeed(baseUser, zapFeedViewModel)
|
||||||
|
|
||||||
Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
Column { LnZapFeedView(zapFeedViewModel, accountViewModel, nav) }
|
LnZapFeedView(zapFeedViewModel, accountViewModel, nav)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1870,11 +1852,7 @@ fun TabRelays(
|
|||||||
}
|
}
|
||||||
|
|
||||||
Column(Modifier.fillMaxHeight()) {
|
Column(Modifier.fillMaxHeight()) {
|
||||||
Column(
|
RelayFeedView(feedViewModel, accountViewModel, enablePullRefresh = false, nav = nav)
|
||||||
modifier = Modifier.padding(vertical = 0.dp),
|
|
||||||
) {
|
|
||||||
RelayFeedView(feedViewModel, accountViewModel, enablePullRefresh = false, nav = nav)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user