Merge pull request #8396 from kevlahnota/master3

fix flip cards redownloading same image with different name
This commit is contained in:
kevlahnota
2025-08-15 20:43:07 +08:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -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);

View File

@@ -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>