From: Damyan Ivanov Date: Sun, 22 Dec 2019 07:25:52 +0000 (+0200) Subject: drop TODO about nicer transaction submission progress (done) and move another to... X-Git-Tag: v0.12.0~127 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=8d3070d2a06a87f856fc697d7c9ffa9e00b03c71;p=mobile-ledger.git drop TODO about nicer transaction submission progress (done) and move another to the proper place --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java b/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java index 5170b933..847e8c2f 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java @@ -52,6 +52,12 @@ import java.util.regex.Pattern; import static android.os.SystemClock.sleep; import static net.ktnx.mobileledger.utils.Logger.debug; +/* TODO: get rid of the custom session/cookie and auth code? + * (the last problem with the POST was the missing content-length header) + * This will resolve itself when hledger-web 1.14+ is released with Debian/stable, + * at which point the HTML form emulation can be dropped entirely + */ + public class SendTransactionTask extends AsyncTask { private final TaskCallback taskCallback; protected String error; @@ -261,7 +267,8 @@ public class SendTransactionTask extends AsyncTask= 2) - throw new IOException( - String.format("aborting after %d tries", tried)); + throw new IOException(String.format("aborting after %d tries", tried)); sleep(100); } } diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java index 24f7f895..d363174b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java @@ -40,10 +40,7 @@ import java.util.Objects; import static net.ktnx.mobileledger.utils.Logger.debug; /* - * TODO: nicer progress while transaction is submitted * TODO: reports - * TODO: get rid of the custom session/cookie and auth code? - * (the last problem with the POST was the missing content-length header) * */ public class NewTransactionActivity extends ProfileThemedActivity implements TaskCallback,