diff options
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java index 75d0838c..4f129851 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java @@ -90,9 +90,8 @@ public class PasswordItem implements Comparable{ public boolean equals(Object o){ PasswordItem other = (PasswordItem) o; // Makes it possible to have a category and a password with the same name - return (other.getType() + other.getName()) - .equals(this.getType() + this.getName()); - } + return (other.getFile().equals(this.getFile())); +} @Override public int compareTo(Object o) { |