]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use expression lambda
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Feb 2021 20:16:42 +0000 (22:16 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:19:43 +0000 (07:19 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java

index c7e59c3d43ac2b3b3d5990e644741ceefbde4969..4ade0e718fcd066b15f7dc9eb7a218491a142d55 100644 (file)
@@ -651,9 +651,8 @@ class TemplateDetailsAdapter extends RecyclerView.Adapter<TemplateDetailsAdapter
                         isChecked ? R.string.template_account_change_amount_sign
                                   : R.string.template_account_keep_amount_sign);
             });
-            final View.OnClickListener negLabelClickListener = (view) -> {
-                b.negateAmountSwitch.toggle();
-            };
+            final View.OnClickListener negLabelClickListener =
+                    (view) -> b.negateAmountSwitch.toggle();
             b.templateDetailsNegateAmountLabel.setOnClickListener(negLabelClickListener);
             b.templateDetailsNegateAmountText.setOnClickListener(negLabelClickListener);
             b.patternAccountLabel.setOnTouchListener((v, event) -> {