Android
Android copied to clipboard
[Bug] Shortcuts not updated after archiving card
If I understand the current functionality correctly, catima provides shortcuts for the 3 most recently used cards. I have confirmed this behavior by clicking a card not present in the shortcuts and immediately it takes the place of the least recently used shortcut.
Description of bug If I archive a card, that is present in the shortcuts, then the shortcut list is updated (the archived card is not present anymore), but another card does not take its place.
Expected behavior The next non-archived card in the most recently used list, should replace the archived card, keeping the number of shown shortcuts stable to 3.
Nice catch, something does seem to be going wrong there.
Looking at the code it might be because it only keeps up to 3 in memory, but that needs further investigation:
https://github.com/CatimaLoyalty/Android/blob/986ae4f0cb21a0cff71ee9114832fd993d792f57/app/src/main/java/protect/card_locker/ShortcutHelper.java#L100-L103