File tree 1 file changed +1
-7
lines changed
app/src/main/java/fr/free/nrw/commons/category
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 3
3
import android .os .Parcel ;
4
4
import android .os .Parcelable ;
5
5
6
-
7
6
public class CategoryItem implements Parcelable {
8
7
private final String name ;
9
8
private boolean selected ;
@@ -42,20 +41,17 @@ public void setSelected(boolean selected) {
42
41
this .selected = selected ;
43
42
}
44
43
45
-
46
44
@ Override
47
45
public int describeContents () {
48
46
return 0 ;
49
47
}
50
48
51
-
52
49
@ Override
53
50
public void writeToParcel (Parcel parcel , int flags ) {
54
51
parcel .writeString (name );
55
52
parcel .writeInt (selected ? 1 : 0 );
56
53
}
57
54
58
-
59
55
@ Override
60
56
public boolean equals (Object o ) {
61
57
if (this == o ) {
@@ -71,15 +67,13 @@ public boolean equals(Object o) {
71
67
72
68
}
73
69
74
-
75
70
@ Override
76
71
public int hashCode () {
77
72
return name .hashCode ();
78
73
}
79
74
80
-
81
75
@ Override
82
76
public String toString () {
83
77
return "CategoryItem: '" + name + '\'' ;
84
78
}
85
- }
79
+ }
You can’t perform that action at this time.
0 commit comments