mProfile = profile;
}
private boolean sendOK() throws IOException {
+// if (BuildConfig.DEBUG) {
+// TODO: simulate random problems
+//
+// try {
+// Thread.sleep(1500);
+// }
+// catch (InterruptedException ex) {
+// Logger.debug("network", ex.toString());
+// }
+//
+// return true;
+// }
+
HttpURLConnection http = NetworkUtil.prepareConnection(mProfile, "add");
http.setRequestMethod("PUT");
http.setRequestProperty("Content-Type", "application/json");
import net.ktnx.mobileledger.model.LedgerTransaction;
import net.ktnx.mobileledger.model.LedgerTransactionAccount;
import net.ktnx.mobileledger.model.MobileLedgerProfile;
+import net.ktnx.mobileledger.utils.Misc;
import org.jetbrains.annotations.NotNull;
}
private void onFabPressed() {
fab.setEnabled(false);
+ Misc.hideSoftKeyboard(this);
if (mListener != null) {
Date date = viewModel.getDate();
LedgerTransaction tr =