Skip to content

Commit

Permalink
fix: "Backup Dialog" for users who sync
Browse files Browse the repository at this point in the history
Incorrect conditional

Fixes 13370
  • Loading branch information
david-allison committed Mar 3, 2023
1 parent 07bcf08 commit 7e9769d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e9769d

Please sign in to comment.