summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-08-12 10:05:43 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-08-12 10:05:43 -0400
commit0cb325f4b1b7af6209a7684e25f292600c7bc80c (patch)
tree7c6d00444b79129d312b2bb49fe01d65de191e6d /app/src
parent113dadd227a4d1cb4d9d12ee8c77c475fa19b577 (diff)
Fix #118: use File.equals
Diffstat (limited to 'app/src')
-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) {