From 1f0ccbf96f45e2a99fe519fd6e32e9705729664f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 17 Apr 2020 22:03:46 +0300 Subject: [PATCH] whitespace --- .../net/ktnx/mobileledger/ui/CurrencySelectorFragment.java | 5 +++-- .../ktnx/mobileledger/ui/activity/NewTransactionModel.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java index 76a7d348..57c602b4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java @@ -139,7 +139,7 @@ public class CurrencySelectorFragment extends AppCompatDialogFragment String currName = String.valueOf(tvNewCurrName.getText()); if (!currName.isEmpty()) { - List list = new ArrayList<>( model.currencies.getValue()); + List 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 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); } 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 4fc1400e..9f5cd8c4 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 @@ -371,7 +371,7 @@ public class NewTransactionModel extends ViewModel { if ((items.size() > 2) && (emptyItems.size() == 1)) { List currItems = itemsForCurrency.getList(currName); - if (currItems.size() == 1){ + if (currItems.size() == 1) { Item item = emptyItems.get(0); removeRow(item, adapter); } -- 2.39.5