Synchronize (incorrectly?) needed after merely entering deck

When merely entering a deck without making any changes, the AnkiMobile app sometimes (incorrectly?) claims that a sync is needed.

  • By “entering a deck without making any changes”, I mean that on the Decks screen I click on an deck name to enter the study screen and then immediately press the Decks button to go back to the Decks screen.)
  • By “claiming that a sync is needed”, I mean that the Synchronize button turns orange with the “!” exclamation mark in the icon.
  • This behavior is seen in AnkiMobile 26.10.1 both on iPhone 27.2.1 and iPad 27.2.1.

Steps to Reproduce:

  1. Use a profile where there is more than one deck.
  2. On the Decks screen, click on the first deck name to go to the study screen, and then click on the Decks button to go back to the decks screen. Press the Synchronize button, regardless of whether a sync is needed. (This step is to ensure that we are in a state where a sync is not needed, before starting the actual testing.)
  3. Click on the first deck name again to go to the study screen, and then click on the Decks button to go back to the decks screen.
  4. Note that the Synchronize button is blue indicating that a sync is not needed, as expected.
  5. Click on the second deck name to go to the study screen, and then click on the Decks button to go back to the decks screen.
  6. Note that the Synchronize button is now orange with “!” in the icon indicating that a sync is needed even though no changes have been made. You have reproduced the bug.

Continued testing:

  1. Press the Synchronize button and note that it turns blue, as expected. We should now be back in a state where a sync is not needed.
  2. Click on the second deck name to go to the study screen, and then click on the Decks button to go back to the decks screen.
  3. Note that the Synchronize button is blue indicating that a sync is not needed, as expected.
  4. Click on the first deck name again to go to the study screen, and then click on the Decks button to go back to the decks screen.
  5. Note that the Synchronize button is now orange with “!” in the icon indicating that a sync is needed even though no changes have been made. You have reproduced the bug again.

By merely entering a new deck study screen, AnkiMobile seems to think that a sync is needed. This seems to be incorrect behavior because there should have been no changes made. (But, perhaps I am mistaken? Perhaps entering a new deck might result in changes that require a sync?)