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" /> + +