mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
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:
@@ -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);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user