From 34f9763e0cdf229e684ddca5b43431efecb8d925 Mon Sep 17 00:00:00 2001 From: Micah Morrison Date: Wed, 6 Sep 2023 13:47:08 -0400 Subject: [PATCH] Fix sort icon for primary FAB action --- lib/community/pages/community_page.dart | 4 +--- lib/post/pages/post_page.dart | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/community/pages/community_page.dart b/lib/community/pages/community_page.dart index 85d8c304e..5500f77d2 100644 --- a/lib/community/pages/community_page.dart +++ b/lib/community/pages/community_page.dart @@ -272,9 +272,7 @@ class _CommunityPageState extends State with AutomaticKeepAliveCl ? GestureFab( distance: 60, icon: Icon( - singlePressAction.isAllowed(state: state, widget: widget) - ? singlePressAction.getIcon(override: singlePressAction == FeedFabAction.changeSort ? sortTypeIcon : null) - : FeedFabAction.dismissRead.getIcon(), + singlePressAction.isAllowed(state: state, widget: widget) ? singlePressAction.getIcon() : FeedFabAction.dismissRead.getIcon(), semanticLabel: singlePressAction.isAllowed(state: state) ? singlePressAction.getTitle(context) : FeedFabAction.dismissRead.getTitle(context), size: 35, ), diff --git a/lib/post/pages/post_page.dart b/lib/post/pages/post_page.dart index bbef21b4b..5dfb3ba71 100644 --- a/lib/post/pages/post_page.dart +++ b/lib/post/pages/post_page.dart @@ -216,7 +216,7 @@ class _PostPageState extends State { centered: combineNavAndFab, distance: combineNavAndFab ? 45 : 60, icon: Icon( - singlePressAction.getIcon(override: singlePressAction == PostFabAction.changeSort ? sortTypeIcon : null, postLocked: postLocked), + singlePressAction.getIcon(postLocked: postLocked), semanticLabel: singlePressAction.getTitle(context, postLocked: postLocked), size: 35, ),