]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fixup: template details help
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 6 Mar 2021 16:15:01 +0000 (18:15 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 6 Mar 2021 16:15:01 +0000 (18:15 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java

index ab0b7b497b6581a05d7c0e49ccfa276dca3efec0..cbc18bd8d2e0ea153bfca250a47830844344516b 100644 (file)
@@ -42,6 +42,7 @@ import net.ktnx.mobileledger.databinding.TemplateDetailsHeaderBinding;
 import net.ktnx.mobileledger.db.AccountAutocompleteAdapter;
 import net.ktnx.mobileledger.model.Data;
 import net.ktnx.mobileledger.model.TemplateDetailsItem;
+import net.ktnx.mobileledger.ui.HelpDialog;
 import net.ktnx.mobileledger.ui.QR;
 import net.ktnx.mobileledger.ui.TemplateDetailSourceSelectorFragment;
 import net.ktnx.mobileledger.utils.Logger;
@@ -414,6 +415,10 @@ class TemplateDetailsAdapter extends RecyclerView.Adapter<TemplateDetailsAdapter
                     (view) -> b.templateIsFallbackSwitch.toggle();
             b.templateIsFallbackLabel.setOnClickListener(fallbackLabelClickListener);
             b.templateIsFallbackText.setOnClickListener(fallbackLabelClickListener);
+            b.templateDetailsTemplateParamsHelpButton.setOnClickListener(v -> HelpDialog.show(
+                    b.getRoot()
+                     .getContext(), R.string.template_details_template_params_label,
+                    R.array.template_params_help));
         }
         @NotNull
         private TemplateDetailsItem.Header getItem() {