From fca15fe068ad12484e0f9db9a62c3fb0056ac868 Mon Sep 17 00:00:00 2001 From: Jakob Nixdorf Date: Mon, 3 Jul 2017 10:35:48 +0200 Subject: [PATCH] Fix comparison for the Entry class --- app/src/main/java/org/shadowice/flocke/andotp/Entry.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Entry.java b/app/src/main/java/org/shadowice/flocke/andotp/Entry.java index d95fcde6..c9d82f44 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Entry.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Entry.java @@ -146,6 +146,7 @@ public class Entry { Entry entry = (Entry) o; if (!Arrays.equals(secret, entry.secret)) return false; + if (period != entry.period) return false; return !(label != null ? !label.equals(entry.label) : entry.label != null); }