From: Damyan Ivanov Date: Sat, 6 Mar 2021 16:15:01 +0000 (+0200) Subject: fixup: template details help X-Git-Tag: v0.17.0~18 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=3acb12fa59277802e1a51b038751c5ccd2025958;p=mobile-ledger.git fixup: template details help --- 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() {