Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add route hints for private channels + option (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelWuensch authored Dec 5, 2020
1 parent 90db8c3 commit 7516658
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@

<string name="settings_lnRequestExpiryTitle">Lightning Request Expiry</string>
<string name="settings_lnFeeLimitTitle">Lightning Payment Fee Limit</string>
<string name="settings_lnPrivateChannelHints">Include route hints for private channels in invoices</string>


<string name="error">Error</string>
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/xml/advanced_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@
android:title="@string/settings_lnFeeLimitTitle"
app:iconSpaceReserved="false" />

<SwitchPreference
android:defaultValue="true"
android:key="includePrivateChannelHints"
android:title="@string/settings_lnPrivateChannelHints"
app:iconSpaceReserved="false" />

</PreferenceCategory>

<PreferenceCategory
Expand Down

0 comments on commit 7516658

Please sign in to comment.