fix flip cards redownloading same image with different name

also fix sync for sentry native ndk since this is declared as system scope
This commit is contained in:
Anthony Calosa
2025-08-15 20:34:26 +08:00
parent 2efeb573e6
commit d7cb0b7ac1
2 changed files with 11 additions and 1 deletions

View File

@@ -198,7 +198,9 @@ public class CardFactory {
if (c.hasAlternateState()) { if (c.hasAlternateState()) {
if (c.isFlipCard()) { if (c.isFlipCard()) {
c.setState(CardStateName.Flipped, false); c.setState(CardStateName.Flipped, false);
c.setImageKey(cp.getImageKey(true)); // set the 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) { else if (c.isDoubleFaced() && cardRules != null) {
c.setState(cardRules.getSplitType().getChangedStateName(), false); c.setState(cardRules.getSplitType().getChangedStateName(), false);

View File

@@ -191,6 +191,10 @@
<groupId>androidx.core</groupId> <groupId>androidx.core</groupId>
<artifactId>core</artifactId> <artifactId>core</artifactId>
</exclusion> </exclusion>
<exclusion>
<groupId>io.sentry</groupId>
<artifactId>sentry-native-ndk</artifactId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>
@@ -215,6 +219,10 @@
<groupId>androidx.core</groupId> <groupId>androidx.core</groupId>
<artifactId>core</artifactId> <artifactId>core</artifactId>
</exclusion> </exclusion>
<exclusion>
<groupId>io.sentry</groupId>
<artifactId>sentry-native-ndk</artifactId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>