From: Damyan Ivanov Date: Sun, 7 Mar 2021 09:43:46 +0000 (+0200) Subject: improvements in debug messages X-Git-Tag: v0.17.0~12 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=ad1487422eb36c06d1910a382de6dac90d9d30f4;p=mobile-ledger.git improvements in debug messages --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java index 68839e0a..ba2903c1 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java @@ -534,7 +534,8 @@ public class NewTransactionModel extends ViewModel { } if (BuildConfig.DEBUG) - dumpItemList("Before submittable checks", list); + dumpItemList(String.format("Before submittable checks (%s)", + workingWithLiveList ? "LIVE LIST" : "custom list"), list); int accounts = 0; final BalanceForCurrency balance = new BalanceForCurrency(); @@ -972,7 +973,7 @@ public class NewTransactionModel extends ViewModel { if (TextUtils.isEmpty(description)) b.append(" «no description»"); else - b.append(String.format(" descr'%s'", description)); + b.append(String.format(" '%s'", description)); if (date != null) b.append(String.format("@%s", date.toString()));