Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model/full/FullStack.java')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/model/full/FullStack.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/full/FullStack.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/full/FullStack.java
index 1c9e94899..2c3f3acc4 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/model/full/FullStack.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/full/FullStack.java
@@ -5,6 +5,7 @@ import androidx.room.Ignore;
import androidx.room.Relation;
import java.util.List;
+import java.util.Objects;
import it.niedermann.nextcloud.deck.model.Card;
import it.niedermann.nextcloud.deck.model.Stack;
@@ -47,8 +48,8 @@ public class FullStack implements IRemoteEntity {
FullStack fullStack = (FullStack) o;
- if (stack != null ? !stack.equals(fullStack.stack) : fullStack.stack != null) return false;
- return cards != null ? cards.equals(fullStack.cards) : fullStack.cards == null;
+ if (!Objects.equals(stack, fullStack.stack)) return false;
+ return Objects.equals(cards, fullStack.cards);
}
@Override