mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-01 10:42:01 -05:00
Group does not need to be a Parcelable anymore
This commit is contained in:
@@ -6,7 +6,7 @@ import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
public class Group implements Parcelable
|
||||
public class Group
|
||||
{
|
||||
public final String _id;
|
||||
public final int order;
|
||||
@@ -21,20 +21,6 @@ public class Group implements Parcelable
|
||||
this.order = in.readInt();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel parcel, int i){
|
||||
parcel.writeString(_id);
|
||||
parcel.writeInt(order);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
// group table does not have an integer ID
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static Group toGroup(Cursor cursor)
|
||||
{
|
||||
String _id = cursor.getString(cursor.getColumnIndexOrThrow(DBHelper.LoyaltyCardDbGroups.ID));
|
||||
@@ -43,18 +29,6 @@ public class Group implements Parcelable
|
||||
return new Group(_id, order);
|
||||
}
|
||||
|
||||
public static final Creator<Group> CREATOR = new Creator<Group>() {
|
||||
@Override
|
||||
public Group createFromParcel(Parcel in) {
|
||||
return new Group(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Group[] newArray(int size) {
|
||||
return new Group[size];
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
if (obj == null){
|
||||
|
||||
Reference in New Issue
Block a user