]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/async/SaveTransactionTask.java
use profiles for connection parameters
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / async / SaveTransactionTask.java
index 9cd669e215fea61d98b5dfb5f1e2eda334d96977..5ccbaaca56922dda8c2925ac454b14ce2d7e363e 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright © 2018 Damyan Ivanov.
+ * Copyright © 2019 Damyan Ivanov.
  * This file is part of Mobile-Ledger.
  * Mobile-Ledger is free software: you can distribute it and/or modify it
  * under the term of the GNU General Public License as published by
  * This file is part of Mobile-Ledger.
  * Mobile-Ledger is free software: you can distribute it and/or modify it
  * under the term of the GNU General Public License as published by
@@ -57,7 +57,7 @@ public class SaveTransactionTask extends AsyncTask<LedgerTransaction, Void, Void
         task_callback = callback;
     }
     private boolean send_ok() throws IOException {
         task_callback = callback;
     }
     private boolean send_ok() throws IOException {
-        HttpURLConnection http = NetworkUtil.prepare_connection(pref, "add");
+        HttpURLConnection http = NetworkUtil.prepare_connection("add");
         http.setRequestMethod("POST");
         http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
         http.setRequestProperty("Accept", "*/*");
         http.setRequestMethod("POST");
         http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
         http.setRequestProperty("Accept", "*/*");