Simplify FTS management

This commit is contained in:
M66B
2020-01-16 09:44:54 +01:00
parent 97d25a9cb4
commit e39e8baa13
6 changed files with 75 additions and 54 deletions

View File

@@ -19,7 +19,18 @@ package eu.faircode.email;
Copyright 2018-2020 by Marcel Bokhorst (M66B)
*/
import androidx.annotation.Nullable;
public class TupleFtsStats {
public long fts;
public long total;
@Override
public boolean equals(@Nullable Object obj) {
if (obj instanceof TupleFtsStats) {
TupleFtsStats other = (TupleFtsStats) obj;
return (this.fts == other.fts && this.total == other.total);
} else
return false;
}
}