commit
* rebase fixup, add null check * better ETA string * drop connection read timeout, for HSDPA networks * bump NPE version
This commit is contained in:
parent
0033843bc2
commit
84ec320df4
4 changed files with 5 additions and 6 deletions
|
|
@ -308,10 +308,10 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
|||
etaStr = "";
|
||||
} else {
|
||||
long eta = (long) Math.ceil((length - done) / averageSpeed);
|
||||
etaStr = " @ ".concat(Utility.stringifySeconds(eta));
|
||||
etaStr = Utility.formatBytes((long) done) + "/" + Utility.stringifySeconds(eta) + " ";
|
||||
}
|
||||
|
||||
h.size.setText(sizeStr.concat(speedStr).concat(etaStr));
|
||||
h.size.setText(sizeStr.concat(etaStr).concat(speedStr));
|
||||
|
||||
h.lastTimestamp = now;
|
||||
h.lastDone = done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue