mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge pull request #8396 from kevlahnota/master3
fix flip cards redownloading same image with different name
This commit is contained in:
@@ -198,7 +198,9 @@ public class CardFactory {
|
||||
if (c.hasAlternateState()) {
|
||||
if (c.isFlipCard()) {
|
||||
c.setState(CardStateName.Flipped, false);
|
||||
c.setImageKey(cp.getImageKey(true));
|
||||
// set the imagekey altstate to false since the rotated image is handled by graphics renderer
|
||||
// setting this to true will download the original image with different name.
|
||||
c.setImageKey(cp.getImageKey(false));
|
||||
}
|
||||
else if (c.isDoubleFaced() && cardRules != null) {
|
||||
c.setState(cardRules.getSplitType().getChangedStateName(), false);
|
||||
|
||||
@@ -191,6 +191,10 @@
|
||||
<groupId>androidx.core</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>io.sentry</groupId>
|
||||
<artifactId>sentry-native-ndk</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -215,6 +219,10 @@
|
||||
<groupId>androidx.core</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>io.sentry</groupId>
|
||||
<artifactId>sentry-native-ndk</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
Reference in New Issue
Block a user