From 03461ab949090976bac32f58ba32a67af27741aa Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 28 Aug 2020 17:40:18 +0200 Subject: [PATCH] Cutoff called before sync As requested by DAE on https://github.com/ankidroid/Anki-Android/issues/5923#issuecomment-682497128 This ensure that unburying occurs before sync if needed. --- AnkiDroid/src/main/java/com/ichi2/libanki/sync/Syncer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/AnkiDroid/src/main/java/com/ichi2/libanki/sync/Syncer.java b/AnkiDroid/src/main/java/com/ichi2/libanki/sync/Syncer.java index 9d53f674084a..0dac8b5c3aca 100644 --- a/AnkiDroid/src/main/java/com/ichi2/libanki/sync/Syncer.java +++ b/AnkiDroid/src/main/java/com/ichi2/libanki/sync/Syncer.java @@ -98,6 +98,7 @@ public Object[] sync() throws UnknownHttpResponseException { public Object[] sync(Connection con) throws UnknownHttpResponseException { mSyncMsg = ""; // if the deck has any pending changes, flush them first and bump mod time + mCol.getSched()._updateCutoff(); mCol.save(); // step 1: login & metadata Response ret = mServer.meta();