@ -64,6 +64,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
@@ -64,6 +64,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
privatebooleansequentialDownload;
privatebooleanfirstLastPieceDownload;
privateTorrent(Parcelin){
this.id=in.readLong();
this.hash=in.readString();
@ -146,6 +147,54 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
@@ -146,6 +147,54 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
this.daemon=daemon;
}
Torrent(Builderbuilder){
this.id=builder.id;
this.hash=builder.hash;
this.name=builder.name;
this.statusCode=builder.statusCode;
this.locationDir=builder.locationDir;
this.rateDownload=builder.rateDownload;
this.rateUpload=builder.rateUpload;
this.seedersConnected=builder.seedersConnected;
this.seedersKnown=builder.seedersKnown;
this.leechersConnected=builder.leechersConnected;
this.leechersKnown=builder.leechersKnown;
this.eta=builder.eta;
this.downloadedEver=builder.downloadedEver;
this.uploadedEver=builder.uploadedEver;
this.totalSize=builder.totalSize;
this.partDone=builder.partDone;
this.available=builder.available;
this.label=builder.label;
this.dateAdded=builder.dateAdded;
if(builder.realDateDone!=null){
this.dateDone=builder.realDateDone;
}else{
if(this.partDone==1){
// Finished but no finished date: set so move to bottom of list
@ -436,4 +485,155 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
@@ -436,4 +485,155 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
@ -658,35 +658,37 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -658,35 +658,37 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -694,16 +696,27 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -694,16 +696,27 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -712,42 +725,26 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -712,42 +725,26 @@ public class QBittorrentAdapter implements IDaemonAdapter {