mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 01:51:24 +01:00
Refactoring
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user