mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Add appropriate 'CREATOR' field to Media class for Parcelable
This commit is contained in:
parent
ef0c192cd2
commit
95320396a5
1 changed files with 10 additions and 0 deletions
|
|
@ -10,6 +10,16 @@ import java.util.Date;
|
|||
|
||||
public class Media implements Parcelable {
|
||||
|
||||
public Creator<Media> CREATOR = new Creator<Media>() {
|
||||
public Media createFromParcel(Parcel parcel) {
|
||||
return new Media(parcel);
|
||||
}
|
||||
|
||||
public Media[] newArray(int i) {
|
||||
return new Media[0];
|
||||
}
|
||||
};
|
||||
|
||||
protected Media() {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue