]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drop unneeded object-level field
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 25 Apr 2020 20:04:56 +0000 (23:04 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 25 Apr 2020 20:04:56 +0000 (23:04 +0300)
used only in the constructor where the local variable is enough

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

index 70819ebedcbc3aeafa0482aabf930b2d683c92bb..f1dc196a55c05f184fbe7264175454a906595a8d 100644 (file)
@@ -95,11 +95,9 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder
     private boolean inUpdate = false;
     private boolean syncingData = false;
     private View commentButton;
-    private NewTransactionItemsAdapter adapter;
     //TODO multiple amounts with different currencies per posting
     NewTransactionItemHolder(@NonNull View itemView, NewTransactionItemsAdapter adapter) {
         super(itemView);
-        this.adapter = adapter;
         tvAccount = itemView.findViewById(R.id.account_row_acc_name);
         tvComment = itemView.findViewById(R.id.comment);
         new TextViewClearHelper().attachToTextView((EditText) tvComment);