mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
Fix #118: use File.equals
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user