Skip to content

Commit f4a82ca

Browse files
shivamhwpPR Batch Testerclaudemaria-rcks
authored
fix(mobile): models stay visible in the picker with Android animations removed (#23888)
Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: maria-rcks <[email protected]>
1 parent a0aefbe commit f4a82ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/mobile/src/features/threads/ThreadSettingsSheet.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import { IconButton } from "../../components/ui/IconButton";
6565
import { ProviderIcon } from "../../components/ProviderIcon";
6666
import { ThemedSwitch } from "../../components/ui/ThemedSwitch";
6767
import { cn } from "../../lib/cn";
68+
import { useReduceMotionEnabled } from "../../lib/appState";
6869
import {
6970
buildModelOptions,
7071
groupByProvider,
@@ -946,7 +947,8 @@ function ThreadSettingsMainContent(props: {
946947
const [listLoaded, setListLoaded] = useState(false);
947948
// Android can drop the first frame of a reduced-motion fade, leaving rows invisible.
948949
const reducedMotion = useReducedMotion();
949-
const animationsReady = listLoaded && !reducedMotion;
950+
const reduceMotionEnabled = useReduceMotionEnabled();
951+
const animationsReady = listLoaded && !reducedMotion && !reduceMotionEnabled;
950952
const catalogItems = buildThreadSettingsCatalogItems(session);
951953
const hasActiveCatalogFilter =
952954
session.providerFilter !== null || session.searchQuery.trim().length > 0;

0 commit comments

Comments
 (0)