diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index c36e1c9..ead68ab 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -203,11 +203,14 @@ export default function TabLayout() { } // Delay to let TTS fully release audio focus, then restart STT + // iOS: 300ms for smooth audio fade + // Android: 50ms (Audio Focus releases immediately) + const delay = Platform.OS === 'android' ? 50 : 300; const timer = setTimeout(() => { if (sessionActiveRef.current) { safeStartSTT(); } - }, 300); // 300ms to ensure TTS audio fully fades + }, delay); return () => clearTimeout(timer); } diff --git a/app/(tabs)/chat.tsx b/app/(tabs)/chat.tsx index 0db1e6c..87e68e4 100644 --- a/app/(tabs)/chat.tsx +++ b/app/(tabs)/chat.tsx @@ -497,15 +497,6 @@ export default function ChatScreen() { - {/* TTS Stop button - only visible when speaking */} - {isSpeaking && ( - - - - )} setSortNewestFirst(prev => !prev)} diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 47abf3b..447dfbb 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -149,6 +149,10 @@ export default function HomeScreen() { user_id: ${userId || 'null'} }; localStorage.setItem('auth2', JSON.stringify(authData)); + + // Set is_mobile flag to hide navigation bar + localStorage.setItem('is_mobile', '1'); + console.log('Auth injected:', authData.username); // Monitor page content for session expired messages