summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java5
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) {