]> git.ktnx.net Git - mobile-ledger.git/commitdiff
whitespace
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 13 Nov 2019 20:15:51 +0000 (22:15 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 13 Nov 2019 20:15:51 +0000 (22:15 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java

index 965d114814049f86998a8ab65b5200bfee981f18..bbfedcbc1aae2a870a10934f91023d67bd7c60ec 100644 (file)
@@ -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);