Refactoring

This commit is contained in:
M66B
2019-04-29 13:33:37 +02:00
parent 204c2418a2
commit f0f1e0f3f6
4 changed files with 12 additions and 29 deletions

View File

@@ -1,9 +1,5 @@
package eu.faircode.email;
import androidx.annotation.Nullable;
import java.util.Objects;
public class NavMenuItem {
private int icon;
private int title;
@@ -61,15 +57,4 @@ public class NavMenuItem {
longClick.run();
return (longClick != null);
}
@Override
public boolean equals(@Nullable Object obj) {
if (obj instanceof NavMenuItem) {
NavMenuItem other = (NavMenuItem) obj;
return (this.icon == other.icon &&
this.title == other.title &&
Objects.equals(this.count, other.count));
} else
return false;
}
}