Fix: Separate connection test from sync

- Add testConnection() method that only tests connectivity
- Connection test no longer syncs notes automatically
- Only 'Sync Now' button triggers actual synchronization
This commit is contained in:
inventory69
2025-12-20 01:19:41 +01:00
parent 5aeb219ab0
commit 3600a30834
2 changed files with 48 additions and 2 deletions

View File

@@ -97,10 +97,10 @@ class SettingsActivity : AppCompatActivity() {
try {
showToast("Teste Verbindung...")
val syncService = WebDavSyncService(this@SettingsActivity)
val result = syncService.syncNotes()
val result = syncService.testConnection()
if (result.isSuccess) {
showToast("Verbindung erfolgreich! ${result.syncedCount} Notizen synchronisiert")
showToast("Verbindung erfolgreich!")
} else {
showToast("Verbindung fehlgeschlagen: ${result.errorMessage}")
}