Skip to content

Commit 6797d96

Browse files
committed
fix(mobile): swap split Settings pages without stale transition strips
1 parent dc84b09 commit 6797d96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/mobile/src/lib/android-workspace-navigation.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { NavigationState } from "@react-navigation/native";
2+
import { isSettingsRoute } from "../features/settings/settings-navigation";
23
import { resetRootStack, type RootStackNavigation } from "./root-stack-reset";
34

45
function androidWorkspaceBackReturnsToThread(state: NavigationState) {
@@ -70,7 +71,8 @@ export function returnToAndroidWorkspaceList(
7071
// In the split view these destinations swap the detail pane beside the sidebar instead of
7172
// stacking over Home, so the default slide-in would show a layer that is not there.
7273
export function androidWorkspaceDestinationAnimation(routeName: string, usesSplitView: boolean) {
73-
return usesSplitView && (routeName === "Thread" || routeName === "PullRequest")
74+
return usesSplitView &&
75+
(routeName === "Thread" || routeName === "PullRequest" || isSettingsRoute(routeName))
7476
? ("none" as const)
7577
: undefined;
7678
}

0 commit comments

Comments
 (0)