]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix visibility of amount sign switch texts
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 14 Feb 2021 07:26:00 +0000 (09:26 +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 23260e008f515d8a55f0105b196c485c72c96d3c..1d79120bad2716d96627441328361112628e8ec5 100644 (file)
@@ -602,6 +602,8 @@ class TemplateDetailsAdapter extends RecyclerView.Adapter<TemplateDetailsAdapter
                 b.templateDetailsAccountAmount.setText((amt == null) ? null : String.format(
                         Data.locale.getValue(), "%,4.2f", (accRow.getAmount())));
                 b.negateAmountSwitch.setVisibility(View.GONE);
+                b.templateDetailsNegateAmountLabel.setVisibility(View.GONE);
+                b.templateDetailsNegateAmountText.setVisibility(View.GONE);
             }
             else {
                 b.templateDetailsAccountAmountSource.setText(
@@ -613,6 +615,8 @@ class TemplateDetailsAdapter extends RecyclerView.Adapter<TemplateDetailsAdapter
                 b.templateDetailsNegateAmountText.setText(
                         accRow.isNegateAmount() ? R.string.template_account_change_amount_sign
                                                 : R.string.template_account_keep_amount_sign);
+                b.templateDetailsNegateAmountLabel.setVisibility(View.VISIBLE);
+                b.templateDetailsNegateAmountText.setVisibility(View.VISIBLE);
             }
 
             b.templateAccountNameSourceLabel.setOnClickListener(