From fe7bda47475a9d304efb0596bde546a5336f2969 Mon Sep 17 00:00:00 2001 From: le king fu Date: Sun, 1 Mar 2026 12:07:34 -0500 Subject: [PATCH] fix: disable KeyboardAvoidingView on Android, sync widget on app start (#6, #9) - Set KeyboardAvoidingView behavior to undefined on Android to avoid conflict with native adjustResize (was causing double-resize) - Call syncWidgetData() at app startup to populate subtasks in widget cache - Keyboard.addListener + adjustResize handles scroll correctly on Android Co-Authored-By: Claude Opus 4.6 --- app/_layout.tsx | 2 ++ app/task/[id].tsx | 2 +- app/task/new.tsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/_layout.tsx b/app/_layout.tsx index 3dcf851..d189cc1 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -12,6 +12,7 @@ import migrations from '@/src/db/migrations/migrations'; import { ensureInbox } from '@/src/db/repository/lists'; import { useSettingsStore } from '@/src/stores/useSettingsStore'; import { initNotifications } from '@/src/services/notifications'; +import { syncWidgetData } from '@/src/services/widgetSync'; import '@/src/i18n'; import '@/src/global.css'; @@ -66,6 +67,7 @@ export default function RootLayout() { if (fontsLoaded && migrationsReady) { ensureInbox().then(async () => { await initNotifications(); + syncWidgetData().catch(() => {}); SplashScreen.hideAsync(); }); } diff --git a/app/task/[id].tsx b/app/task/[id].tsx index d1e3b0c..9e0905c 100644 --- a/app/task/[id].tsx +++ b/app/task/[id].tsx @@ -223,7 +223,7 @@ export default function TaskDetailScreen() { - + {/* Title */} - + {/* Title */}