From c1443b8e9986b3d8b97a38d5e3e3ef7194029fcc Mon Sep 17 00:00:00 2001 From: Tom Briden Date: Thu, 26 Sep 2013 15:03:41 +0100 Subject: [PATCH 1/2] Torrent: If dateDone==null but partDone==1, set it to 1900-12-31 so they appear at the bottom of the list when sorting by date done descending --- core/libs/transdroid-connect.jar | Bin 258507 -> 258607 bytes lib/src/org/transdroid/daemon/Torrent.java | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/libs/transdroid-connect.jar b/core/libs/transdroid-connect.jar index 7fc5b9e5257bf709b3e9e58789521385a4d78fae..5bc0ca9c84c8c0658cf585d67815a5db82d27ecd 100644 GIT binary patch delta 13988 zcmZu%1y~hZv<61HQ@XoD8bL})1*9b;q!a`Jr4K3!2#A0(gn)=hDJ_Raq@=q=x?36* z-<&zzd*!|7r}xfT>)-#1y=Ko|GrN73v|x^uSWg=`M}>ihhlhdhBNsz#1?+pu#kese zv>PswJ?Y*z38`@$ws;r%PMz}+wm@lbp3eOi`|-{-@hZOk$?>=P4J=5gtAIJvK+pUZ}X_h;Oj& z&Hjalsq*1tqh$IUIzJ%1MFORtDH^086MI2SU>%Z?T3+E?ga z!WpSnkZK8b!NwgK@@2a#eBoYM3VqIZ((G840lud-lD-%GsTto%cdP!oA92JvPjaYI z#&VsupK8)vt|aq#ubWg)8y7F0xN~g+0|VnRCI-fTDPZ!FQ-y@kpOP?4JuCqFT@px^ zdJeuQ5+cJzUBrz8vLz|pS!lHgi#S>uNG4kn%twd`W5#1*AW;WES~4491cwt> z^_VA)|LY0tBNPY^=+_GcQoBhDn}e+&+gUL2U^-M3!X>!dDQM-toUz+@pim#=_{5Kd z|3?*!QswU^|6f&!|NguGN2-6A_WwxPkN-dE&d>K~EXp^Kc>pri`}@=jSmcfprT^?7y`0IGCq)VeKcpQ!Ntu*@4E15MfFp2)!8QU!8CV zISEEH`7&aKyyP6Y!;Wi`kIy2HNR`jFr^}D!Bog?(}UyALuGidwQ`z+0wZ#g?B zt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`V1uB1f;O*$0p=E`*RF|3Homwz$q{v`ijD=v<;~E5d{Ev zD;ePahpYpUaXrhi5+q3g@&Ak?D|PZXEg1swfaAYeov*-(1#ANJY|s&gii(g^WDDfn ZL&#BRL-em7Es*RRz=W^<0jhe${{gFRcuD{O diff --git a/lib/src/org/transdroid/daemon/Torrent.java b/lib/src/org/transdroid/daemon/Torrent.java index 75bfb86c..e05cb1f6 100644 --- a/lib/src/org/transdroid/daemon/Torrent.java +++ b/lib/src/org/transdroid/daemon/Torrent.java @@ -142,7 +142,12 @@ public final class Torrent implements Parcelable, Comparable { if (realDateDone != null) { this.dateDone = realDateDone; } else { - if (eta == -1 || eta == -2) { + if( this.partDone == 1){ //finished but no finished date set so move to bottom of list + Calendar cal = Calendar.getInstance(); + cal.clear(); + cal.set(1900, 12, 31); + this.dateDone = cal.getTime(); + } else if (eta == -1 || eta == -2) { this.dateDone = new Date(Long.MAX_VALUE); } else { Calendar cal = Calendar.getInstance(); From 96f1330127a29d31068e6a6dba9834dee590aaa4 Mon Sep 17 00:00:00 2001 From: Tom Briden Date: Fri, 4 Oct 2013 18:05:55 +0100 Subject: [PATCH 2/2] Fix NumberFormatException if port is saved as blank string if you open the port option and click ok, it saves a blank string in preferences and this gets loaded instead of using defaultPort so throws the exception trying to convert "" to an int. --- .../transdroid/core/app/settings/ApplicationSettings.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/org/transdroid/core/app/settings/ApplicationSettings.java b/core/src/org/transdroid/core/app/settings/ApplicationSettings.java index 5946714e..3fc0eeec 100644 --- a/core/src/org/transdroid/core/app/settings/ApplicationSettings.java +++ b/core/src/org/transdroid/core/app/settings/ApplicationSettings.java @@ -89,13 +89,17 @@ public class ApplicationSettings { // @formatter:off Daemon type = Daemon.fromCode(prefs.getString("server_type_" + order, null)); boolean ssl = prefs.getBoolean("server_sslenabled_" + order, false); - String defaultPort = Integer.toString(Daemon.getDefaultPortNumber(type, ssl)); + + String port = prefs.getString("server_port_" + order, ""); + if(port.equals("")) + port = Integer.toString(Daemon.getDefaultPortNumber(type, ssl)); + return new ServerSetting(order, prefs.getString("server_name_" + order, null), type, prefs.getString("server_address_" + order, null), prefs.getString("server_localaddress_" + order, null), prefs.getString("server_localnetwork_" + order, null), - Integer.parseInt(prefs.getString("server_port_" + order, defaultPort)), + Integer.parseInt(port), ssl, prefs.getBoolean("server_ssltrustall_" + order, false), prefs.getString("server_ssltrustkey_" + order, null),