mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Merge "Persist width & height to Parcelables"
This commit is contained in:
commit
052439a2d5
1 changed files with 4 additions and 0 deletions
|
|
@ -158,6 +158,8 @@ public class Media implements Parcelable {
|
||||||
parcel.writeSerializable(dateUploaded);
|
parcel.writeSerializable(dateUploaded);
|
||||||
parcel.writeString(creator);
|
parcel.writeString(creator);
|
||||||
parcel.writeSerializable(tags);
|
parcel.writeSerializable(tags);
|
||||||
|
parcel.writeInt(width);
|
||||||
|
parcel.writeInt(height);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Media(Parcel in) {
|
public Media(Parcel in) {
|
||||||
|
|
@ -170,6 +172,8 @@ public class Media implements Parcelable {
|
||||||
dateUploaded = (Date) in.readSerializable();
|
dateUploaded = (Date) in.readSerializable();
|
||||||
creator = in.readString();
|
creator = in.readString();
|
||||||
tags = (HashMap<String, Object>)in.readSerializable();
|
tags = (HashMap<String, Object>)in.readSerializable();
|
||||||
|
width = in.readInt();
|
||||||
|
height = in.readInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDescription(String description) {
|
public void setDescription(String description) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue