From 7516658ae35acd803248808e6501ce4a7b776768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20W=C3=BCnsch?= Date: Sat, 5 Dec 2020 13:04:12 +0100 Subject: [PATCH] Add route hints for private channels + option (#276) --- .../java/zapsolutions/zap/fragments/ReceiveBSDFragment.java | 1 + app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/advanced_settings.xml | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/app/src/main/java/zapsolutions/zap/fragments/ReceiveBSDFragment.java b/app/src/main/java/zapsolutions/zap/fragments/ReceiveBSDFragment.java index d4285657..56ca7f87 100644 --- a/app/src/main/java/zapsolutions/zap/fragments/ReceiveBSDFragment.java +++ b/app/src/main/java/zapsolutions/zap/fragments/ReceiveBSDFragment.java @@ -477,6 +477,7 @@ private void generateRequest() { .setValue(value) .setMemo(mEtMemo.getText().toString()) .setExpiry(Long.parseLong(PrefsUtil.getPrefs().getString("lightning_expiry", "86400"))) // in seconds + .setPrivate(PrefsUtil.getPrefs().getBoolean("includePrivateChannelHints", true)) .build(); getCompositeDisposable().add(LndConnection.getInstance().getLightningService().addInvoice(asyncInvoiceRequest) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1a23a79a..fdeba0eb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -252,6 +252,7 @@ Lightning Request Expiry Lightning Payment Fee Limit + Include route hints for private channels in invoices Error diff --git a/app/src/main/res/xml/advanced_settings.xml b/app/src/main/res/xml/advanced_settings.xml index f13d7f49..eeb6d33b 100644 --- a/app/src/main/res/xml/advanced_settings.xml +++ b/app/src/main/res/xml/advanced_settings.xml @@ -63,6 +63,12 @@ android:title="@string/settings_lnFeeLimitTitle" app:iconSpaceReserved="false" /> + +