]> git.ktnx.net Git - mobile-ledger.git/commitdiff
convert two inner classes to static
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 3 May 2020 09:10:41 +0000 (12:10 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 3 May 2020 09:10:41 +0000 (12:10 +0300)
eases references etc

app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java

index 7aaacf9ed3e6ba4da3548749ceb48cc707585c7c..d1715969790fc904ef3aa89334ce04b15f5646ae 100644 (file)
@@ -632,7 +632,8 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter<NewTransactionItem
             model.isSubmittable.setValue(false);
         }
     }
-    private class BalanceForCurrency {
+
+    private static class BalanceForCurrency {
         private HashMap<String, Float> hashMap = new HashMap<>();
         float get(String currencyName) {
             Float f = hashMap.get(currencyName);
@@ -653,7 +654,7 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter<NewTransactionItem
         }
     }
 
-    private class ItemsForCurrency {
+    private static class ItemsForCurrency {
         private HashMap<String, List<NewTransactionModel.Item>> hashMap = new HashMap<>();
         @NonNull
         List<NewTransactionModel.Item> getList(@Nullable String currencyName) {