TypeScript
fix(mobile): models stay visible in the picker with Android animations removed (#23888)
shivamf4a82ca6a003
diff --git a/apps/mobile/src/features/threads/ThreadSettingsSheet.tsx b/apps/mobile/src/features/threads/ThreadSettingsSheet.tsxindex 1f17fd3bb84..ecda2764756 100644--- a/apps/mobile/src/features/threads/ThreadSettingsSheet.tsx+++ b/apps/mobile/src/features/threads/ThreadSettingsSheet.tsx@@ -65,6 +65,7 @@ import { IconButton } from "../../components/ui/IconButton";import { ProviderIcon } from "../../components/ProviderIcon";import { ThemedSwitch } from "../../components/ui/ThemedSwitch";import { cn } from "../../lib/cn";+import { useReduceMotionEnabled } from "../../lib/appState";import {buildModelOptions,groupByProvider,@@ -946,7 +947,8 @@ function ThreadSettingsMainContent(props: {const [listLoaded, setListLoaded] = useState(false);// Android can drop the first frame of a reduced-motion fade, leaving rows invisible.const reducedMotion = useReducedMotion();- const animationsReady = listLoaded && !reducedMotion;+ const reduceMotionEnabled = useReduceMotionEnabled();+ const animationsReady = listLoaded && !reducedMotion && !reduceMotionEnabled;const catalogItems = buildThreadSettingsCatalogItems(session);const hasActiveCatalogFilter =session.providerFilter !== null || session.searchQuery.trim().length > 0;