Fix issue when card remained tapped when switching zones

This commit is contained in:
drdev
2014-05-25 23:45:45 +00:00
parent d49498d437
commit 1c3b767935

View File

@@ -143,7 +143,7 @@ public abstract class VCardDisplayArea extends VDisplayArea {
public static CardAreaPanel get(Card card0) {
CardAreaPanel cardPanel = allCardPanels.get(card0.getUniqueNumber());
if (cardPanel == null) {
if (cardPanel == null || cardPanel.getCard() != card0) { //replace card panel if card copied
cardPanel = new CardAreaPanel(card0);
allCardPanels.put(card0.getUniqueNumber(), cardPanel);
}