]> git.ktnx.net Git - mobile-ledger.git/commitdiff
whitespace
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 17 Apr 2020 19:03:46 +0000 (22:03 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 17 Apr 2020 19:03:46 +0000 (22:03 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java

index 76a7d348dd742aec3024ec92afe64f5273fb01fb..57c602b433be96ac73d9913966227ac184e9c472 100644 (file)
@@ -139,7 +139,7 @@ public class CurrencySelectorFragment extends AppCompatDialogFragment
 
             String currName = String.valueOf(tvNewCurrName.getText());
             if (!currName.isEmpty()) {
-                List<Currency> list = new ArrayList<>( model.currencies.getValue());
+                List<Currency> list = new ArrayList<>(model.currencies.getValue());
                 // FIXME hardcoded position and gap setting
                 list.add(new Currency(profile, String.valueOf(tvNewCurrName.getText()),
                         Currency.Position.after, false));
@@ -201,7 +201,8 @@ public class CurrencySelectorFragment extends AppCompatDialogFragment
     @Override
     public void onCurrencyLongClick(Currency item) {
         ArrayList<Currency> list = new ArrayList<>(model.currencies.getValue());
-        App.getDatabase().execSQL("delete from currencies where id=?", new Object[]{item.getId()});
+        App.getDatabase()
+           .execSQL("delete from currencies where id=?", new Object[]{item.getId()});
         list.remove(item);
         model.currencies.setValue(list);
     }
index 4fc1400e9fe69b7f26c6aedb0e41ce3584174dcd..9f5cd8c49108e622e288da4d066ad35e8e510bb4 100644 (file)
@@ -371,7 +371,7 @@ public class NewTransactionModel extends ViewModel {
                 if ((items.size() > 2) && (emptyItems.size() == 1)) {
                     List<Item> currItems = itemsForCurrency.getList(currName);
 
-                    if (currItems.size() == 1){
+                    if (currItems.size() == 1) {
                         Item item = emptyItems.get(0);
                         removeRow(item, adapter);
                     }