From: Damyan Ivanov Date: Wed, 13 Nov 2019 20:15:51 +0000 (+0200) Subject: whitespace X-Git-Tag: v0.11.0~67 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=90ca7634c9f8577bc58763e93c166a4db1888ac6;p=mobile-ledger.git whitespace --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java index 965d1148..bbfedcbc 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java @@ -98,10 +98,12 @@ public class NewTransactionModel extends ViewModel { boolean accountsInInitialState() { for (Item item : items) { LedgerTransactionAccount acc = item.getAccount(); - if (acc.isAmountSet()) return false; + if (acc.isAmountSet()) + return false; if (!acc.getAccountName() .trim() - .isEmpty()) return false; + .isEmpty()) + return false; } return true; @@ -115,7 +117,8 @@ public class NewTransactionModel extends ViewModel { return header; } - if (index <= items.size()) return items.get(index - 1); + if (index <= items.size()) + return items.get(index - 1); return trailer; } @@ -384,9 +387,11 @@ public class NewTransactionModel extends ViewModel { * @return nicely formatted, shortest available date representation */ public String getFormattedDate() { - if (date == null) return null; + if (date == null) + return null; Date time = date.getValue(); - if (time == null) return null; + if (time == null) + return null; Calendar c = GregorianCalendar.getInstance(); c.setTime(time);