mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Shift constructor to start of code
This commit is contained in:
parent
6250aaa89d
commit
663981ab22
1 changed files with 6 additions and 8 deletions
|
|
@ -60,6 +60,11 @@ public class Contribution extends Media {
|
||||||
|
|
||||||
public EventLog.LogBuilder event;
|
public EventLog.LogBuilder event;
|
||||||
|
|
||||||
|
public Contribution(Uri localUri, String remoteUri, String filename, String description, long dataLength, Date dateCreated, Date dateUploaded, String creator, String editSummary) {
|
||||||
|
super(localUri, remoteUri, filename, description, dataLength, dateCreated, dateUploaded, creator);
|
||||||
|
this.editSummary = editSummary;
|
||||||
|
timestamp = new Date(System.currentTimeMillis());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(Parcel parcel, int flags) {
|
public void writeToParcel(Parcel parcel, int flags) {
|
||||||
|
|
@ -104,13 +109,6 @@ public class Contribution extends Media {
|
||||||
return timestamp;
|
return timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Contribution(Uri localUri, String remoteUri, String filename, String description, long dataLength, Date dateCreated, Date dateUploaded, String creator, String editSummary) {
|
|
||||||
super(localUri, remoteUri, filename, description, dataLength, dateCreated, dateUploaded, creator);
|
|
||||||
this.editSummary = editSummary;
|
|
||||||
timestamp = new Date(System.currentTimeMillis());
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getState() {
|
public int getState() {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue