()
| 165 | } |
| 166 | |
| 167 | private static void onCardChanged() { |
| 168 | mutateIconBounds = null; |
| 169 | if (activateHandler != null) { |
| 170 | currentActivateAction = activateHandler.getActivateAction(currentIndex); |
| 171 | } |
| 172 | if (MatchController.instance.mayFlip(currentCard)) { |
| 173 | flipIconBounds = new Rectangle(); |
| 174 | } else { |
| 175 | flipIconBounds = null; |
| 176 | } |
| 177 | if (currentCard != null) { |
| 178 | if (!currentCard.getMergedCardsCollection().isEmpty()) |
| 179 | mutateIconBounds = new Rectangle(); |
| 180 | } |
| 181 | showAltState = false; |
| 182 | specialize.setVisible( |
| 183 | currentCard != null && currentCard.canSpecialize() && currentCard.getCurrentState().getState() == CardStateName.Original |
| 184 | ); |
| 185 | } |
| 186 | |
| 187 | private static CardView getCardView(Object item) { |
| 188 | if (item instanceof Entry) { |
no test coverage detected