diff --git a/mobile/app/(tabs)/settings.tsx b/mobile/app/(tabs)/settings.tsx index 16f228e..27fdef1 100644 --- a/mobile/app/(tabs)/settings.tsx +++ b/mobile/app/(tabs)/settings.tsx @@ -37,9 +37,6 @@ export default function SettingsScreen() { async function save() { await setSetting(db, 'instance_url', instanceUrl.trim()); await setSetting(db, 'handle', handle.trim()); - if (Platform.OS === 'android') { - await setSetting(db, 'auto_import_path', autoPath.trim()); - } setSaved(true); setTimeout(() => setSaved(false), 2000); } @@ -173,11 +170,12 @@ export default function SettingsScreen() { placeholder="/sdcard/FitFiles" value={autoPath} onChangeText={setAutoPath} + onBlur={() => setSetting(db, 'auto_import_path', autoPath.trim())} autoCapitalize="none" /> - New FIT files in this directory are imported automatically in the - background. Leave blank to disable. Requires storage permission. + New FIT files in this directory are imported automatically when you + open the app. Leave blank to disable. Requires storage permission. )}