From 7e9769ddca89df4349753b229b8b59f42e638f3a Mon Sep 17 00:00:00 2001 From: David Allison <62114487+david-allison@users.noreply.github.com> Date: Wed, 1 Mar 2023 00:40:17 +0000 Subject: [PATCH] fix: "Backup Dialog" for users who sync Incorrect conditional Fixes 13370 --- .../src/main/java/com/ichi2/anki/dialogs/BackupPromptDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/BackupPromptDialog.kt b/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/BackupPromptDialog.kt index 0cf6fde788c9..1e636af9e93d 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/BackupPromptDialog.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/BackupPromptDialog.kt @@ -176,7 +176,7 @@ class BackupPromptDialog private constructor(private val windowContext: Context) } // Show dialog to sync if user hasn't synced in a while val preferences = AnkiDroidApp.getSharedPrefs(windowContext) - return millisecondsSinceLastSync(preferences) <= ONE_DAY_IN_MS * 7 + return millisecondsSinceLastSync(preferences) >= ONE_DAY_IN_MS * 7 } // Non-legacy locations may be deleted by the user on uninstall