From 3acb12fa59277802e1a51b038751c5ccd2025958 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 6 Mar 2021 18:15:01 +0200 Subject: [PATCH] fixup: template details help --- .../mobileledger/ui/templates/TemplateDetailsAdapter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java index ab0b7b49..cbc18bd8 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsAdapter.java @@ -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 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() { -- 2.39.5